Interfaces
Collection of custom adapters for interfacing with various systems.
ScriptAdapterFactory
Bases: object
Factory for constructing specific script adapter objects. Uses iter_adapters to find all concrete implementations of ScriptAdapter.
Source code in maestrowf/interfaces/__init__.py
iter_adapters()
Based off of packaging.python.org loop over a namespace and find the modules. This has been adapted for this particular use case of loading all classes implementing ScriptAdapter loaded from all modules in maestrowf.interfaces.script.
Returns:
Type | Description |
---|---|
an iterable of the classes existing in the namespace |