1 0
import pkg_resources
2

3

4 0
def get_benchmarks():
5
    """
6
    Determine the installed ``taproom`` benchmarks.
7
    """
8 0
    installed_benchmarks = {}
9

10 0
    for entry_point in pkg_resources.iter_entry_points(group="taproom.benchmarks"):
11 0
        installed_benchmarks[entry_point.name] = entry_point.load()
12

13 0
    return installed_benchmarks

Read our documentation on viewing source code .

Loading