flirror/utils.py
def discover_plugins() -> Dict[str, ModuleType]:
    """
    Discover installed flirror plugins following the naming schema 'fliror_*'.

    Find all installed packages starting with 'flirror_' using the pkgutil
    module and returns them.

    For more information, see
    https://packaging.python.org/guides/creating-and-discovering-plugins/
    """
    discovered_plugins = {
        name: importlib.import_module(name)
        for finder, name, ispkg in pkgutil.iter_modules()
        if name.startswith("flirror_")
    }

    LOGGER.debug(
        "Found the following flirror plugins: '%s'",
        "', '".join(discovered_plugins.keys()),
    )

    return discovered_plugins

    Discover installed flirror plugins following the naming schema 'fliror_*'.

    Find all installed packages starting with 'flirror_' using the pkgutil
    module and returns them.

    For more information, see
    https://packaging.python.org/guides/creating-and-discovering-plugins/
    
Discover installed flirror plugins following the naming schema 'fliror_*'.
Find all installed packages starting with 'flirror_' using the pkgutil
module and returns them.


Discover installed flirror plugins following the naming schema ' fliror_ * ' . Find all installed packages starting with ' flirror_ ' using the pkgutil module and returns them .
def discover_plugins() -> Dict[str, ModuleType]:
    discovered_plugins = {
        name: importlib.import_module(name)
        for finder, name, ispkg in pkgutil.iter_modules()
        if name.startswith("flirror_")
    }
    LOGGER.debug(
        "Found the following flirror plugins: '%s'",
        "', '".join(discovered_plugins.keys()),
    )
    return discovered_plugins
def discover_plugins ( ) -> Dict [ str , ModuleType ] : discovered_plugins = { name : importlib . import_module ( name ) for finder , name , ispkg in pkgutil . iter_modules ( ) if name . startswith ( "flirror_" ) } LOGGER . debug ( "Found the following flirror plugins: '%s'" , "', '" . join ( discovered_plugins . keys ( ) ) , ) return discovered_plugins
Discover installed flirror plugins following the naming schema 'fliror_*'.
Discover installed flirror plugins following the naming schema ' fliror_ * ' .
"""
    Discover installed flirror plugins following the naming schema 'fliror_*'.

    Find all installed packages starting with 'flirror_' using the pkgutil
    module and returns them.

    For more information, see
    https://packaging.python.org/guides/creating-and-discovering-plugins/
    """