# Path: dyndnsc/common/load.py
# def find_class(name, classes):
#     """Return class in ``classes`` identified by configuration key ``name``."""
#     name = name.lower()
#     cls = next((c for c in classes if c.configuration_key == name), None)
#     if cls is None:
#         raise ValueError("No class named '%s' could be found" % name)
#     return cls


from ..common.load import find_class
    from .builtin import PLUGINS
# -*- coding: utf-8 -*-

"""Management of detectors."""



def detector_classes():
    """Return all built-in detector classes."""
    return PLUGINS


def get_detector_class(name="webcheck4"):
    """Return detector class identified by configuration key ``name``."""

# Path: dyndnsc/common/load.py
# def find_class(name, classes):
#     """Return class in ``classes`` identified by configuration key ``name``."""
#     name = name.lower()
#     cls = next((c for c in classes if c.configuration_key == name), None)
#     if cls is None:
#         raise ValueError("No class named '%s' could be found" % name)
#     return cls


# Path: dyndnsc/detector/manager.py
from ..common.load import find_class
    from .builtin import PLUGINS

# -*- coding: utf-8 -*-

"""Management of detectors."""



def detector_classes():
    """Return all built-in detector classes."""
    return PLUGINS


def get_detector_class(name="webcheck4"):
    """Return detector class identified by configuration key ``name``."""

    return find_class(name, detector_classes())