ComponentCatalog#
- class scikitplot.corpus.ComponentCatalog(specs=(), *, outcomes=())[source]#
An immutable snapshot of every registered component.
- Parameters:
- specsiterable of ComponentSpec
The collected specs.
- Parameters:
specs (Any)
outcomes (Any)
Notes
A snapshot, not a live proxy: building it walks the registries once. Call
component_catalogagain after registering something new.- available(category=None)[source]#
Return only components that are usable now.
- Parameters:
category (str | None)
- Return type:
- discovery_failures()[source]#
Sources that could not be consulted.
- Returns:
- list of DiscoveryOutcome
Empty when every source answered. A non-empty result means the catalog is incomplete for a reason worth acting on, which an empty category alone could never tell you.
- Return type:
- get(category, name)[source]#
Return one spec, or
Noneif it is not registered.- Parameters:
- Return type:
ComponentSpec | None
- list(category=None)[source]#
Return specs, optionally filtered to one category.
- Parameters:
category (str | None)
- Return type:
- property outcomes: tuple[DiscoveryOutcome, ...]#
What happened when each source was consulted.