DataInterfaceStore#
- class DataInterfaceStore(*args)#
Bases:
MutableMapping[str,_V]Mapping of registered interfaces.
Interface classes are stored using their unique ID, or SHORTNAME if not defined. They can be retrieved using ID or SHORTNAME, as preferred.
- Parameters:
args (_V | str)
- add(di, name=None)#
Register an interface subclass.
Will register it under: - name if supplied -
DataInterface.IDif defined -DataInterface.SHORTNAMEif definedIf the SHORTNAME attribute is defined, an alias will be stored in
InterfaceStore.shortnames, and the interface can either be accessed with its ID or shortname.
- get_no_import(key)#
Retrieve interface without importing it if a string.
- register(name=None)#
Decorator to register an interface.