Cli IO Adapter Class#

class expectmine.io.adapters.cli_io_adapter.CliIoAdapter(**kwargs: Dict[Any, Any])[source]#

Bases: BaseIoAdapter

CliIo adapter to produce CliIo instances.

__init__(**kwargs: Dict[Any, Any])[source]#

Creates a factory for producing scoped io.

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:

BaseIo

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.