aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/registry.py
blob: 3bc6495f4dd2edf58c11bfbf468fd04477716cdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
# This file is part of the "Sorting algorithms" project.
# For details, see https://github.com/egor-tensin/sorting-algorithms.
# Distributed under the MIT License.

from . import impl


_ALL_ALGORITHMS = impl.refresh_algorithms()


def get_codenames():
    return _ALL_ALGORITHMS.keys()


def get(codename):
    return _ALL_ALGORITHMS[codename]