denote.registry¶
Backend discovery, registration, and lazy loading.
Functions
Clear all registered backends. |
|
|
Get a backend's config and lazily-loaded adapter. |
|
Get a backend's config without loading its adapter. |
|
Return the default backend name for a given task. |
|
List registered backends, optionally filtered by task. |
|
Register a backend (for third-party plugins). |
- denote.registry.get_backend(name)[source]¶
Get a backend’s config and lazily-loaded adapter.
- Return type:
- Returns:
Dict with ‘config’ and ‘adapter’ keys.
- denote.registry.get_config(name)[source]¶
Get a backend’s config without loading its adapter.
- Return type:
- denote.registry.get_default_backend(task)[source]¶
Return the default backend name for a given task.
Looks for backends with ‘default_for’ containing the task. Falls back to the first registered backend for that task.
- Return type:
- denote.registry.list_backends(task=None)[source]¶
List registered backends, optionally filtered by task.