aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/registry.py
blob: 67416ebd0fb2477f98935d76c03258210e0774f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (c) 2016 Egor Tensin <egor@tensin.name>
# 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]