IO Base Adapter Class#
Warning
This class is an abstract implementation using ABC. It serves as an interface for other IO classes to build upon. You should never import BaseIoAdapter to use as IO for your pipeline steps.
- class expectmine.io.base_io_adapter.BaseIoAdapter(**kwargs: Dict[Any, Any])[source]#
Bases:
ABC- abstract get_instance(step_name: str, **kwargs: Dict[Any, Any]) BaseIo[source]#
Produces a scoped instance of type BaseIo.
- Parameters:
step_name (str) – The scope of the instance
- Returns:
A scoped instance of io.
- Return type:
- Example:
>>> get_instance("Instance 1") BaseStore
>>> get_instance("") ValueError("Step name can not be empty.")
- Raises:
TypeError – If the arguments have the wrong type.
ValueError – If step name is too long or empty.