pymixef.plugins module¶
Typed, deterministic registries for PyMixEF extension points.
- class pymixef.plugins.CovariancePlugin(*args, **kwargs)[source]¶
Bases:
ProtocolMinimal covariance plugin contract.
- covariance(parameters, **context)[source]¶
Construct a covariance matrix.
- Parameters:
parameters (Any)
context (Any)
- Return type:
Any
- class pymixef.plugins.EstimatorPlugin(*args, **kwargs)[source]¶
Bases:
ProtocolMinimal estimator extension contract.
- class pymixef.plugins.PluginInfo(name, implementation, version=None, source='runtime')[source]¶
Bases:
objectMetadata retained for one registered implementation.
- Parameters:
name (str)
implementation (Any)
version (str | None)
source (str)
- name: str¶
- implementation: Any¶
- version: str | None¶
- source: str¶
- class pymixef.plugins.Registry(kind)[source]¶
Bases:
Generic[T]Thread-safe registry with normalized names and explicit replacement.
- Parameters:
kind (str)
- register(name, implementation=None, *, replace=False, version=None, source='runtime')[source]¶
Register an implementation, directly or as a decorator.
- Parameters:
name (str)
implementation (T | None)
replace (bool)
version (str | None)
source (str)
- Return type:
T | Callable[[T], T]
- unregister(name)[source]¶
Remove and return a runtime registration.
- Parameters:
name (str)
- Return type:
T
- get(name)[source]¶
Resolve an implementation by normalized name.
- Parameters:
name (str)
- Return type:
T
- snapshot()[source]¶
Return a detached, sorted registry snapshot.
- Return type:
Mapping[str, PluginInfo]