blueetl.adapters.base¶
Base Adapter.
Classes
|
Base Adapter to be subclassed by other adapters. |
Exceptions
Generic Adapter Error. |
- exception blueetl.adapters.base.AdapterError¶
Bases:
Exception
Generic Adapter Error.
- class blueetl.adapters.base.BaseAdapter(_impl: InterfaceT | None)¶
Bases:
Generic
[InterfaceT
],ABC
Base Adapter to be subclassed by other adapters.
Init the adapter from the specified implementation.
- exists() bool ¶
Return True if the wrapped object exists, False otherwise.
- abstract classmethod from_file(filepath: Path | None) BaseAdapter ¶
Load and return a new object from file.
- property instance: Any¶
Return the wrapped instance, or None if it doesn’t exist.