load_plugins

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

load_plugins(*, strict: bool = False) → PluginLoadReport[source]

Load external HABIT plugins declared through standard Python entry points.

An entry point may resolve to a module (whose registration decorators execute during import) or to a zero-argument callable that performs registration. Discovery is idempotent for an installed distribution entry point.

Parameters:

strict – Raise the first plugin loading error instead of returning it in PluginLoadReport.failures.

Returns:

Loaded entry-point identifiers and any non-fatal load errors.