aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/algorithms/registry.py
blob: 8f0469d3346181c9728cabff57c35e78e75f714e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                           
# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
# This file is licensed under the terms of the MIT License.
# See LICENSE.txt for details.

import algorithms.impl

def refresh_algorithms():
    algorithms.impl._refresh_algorithms()

def get_codenames():
    return algorithms.impl._ALL_ALGORITHMS.keys()

def iter_algorithms():
    return iter(algorithms.impl._ALL_ALGORITHMS.values())

def get(codename):
    return algorithms.impl._ALL_ALGORITHMS[codename]