Skip to content

fontlabapp.plugins.registry.Registry · declarations 001

Back to fontlabapp.plugins.registry.Registry

__init__

__init__(config_dir: str | Path | None = None, error_sink: ErrorSink | None = None, extensions_dir: str | Path | None = None) -> None

available

available(kind: str | None = None) -> dict[str, type[Plugin]]

Return all known classes or only one kind, keyed by stable name.

disable

disable(name: str) -> bool

Disable a known reporter and remove its painter token.

enable

enable(name: str) -> bool

Enable a reporter, rolling its overlay back if persistence fails.

enabled_palettes

enabled_palettes() -> tuple[str, ...]

Return shown palettes; they stay hidden until the user shows one.

rescan

rescan() -> dict[str, type[Plugin]]

Add newly available bundles without replacing active registrations.