Bases: abc.ABC

Base class for reading data

read() pandas.core.frame.DataFrame[source]

Bases: abc.ABC

Base class for writing Result instances to an external medium such as disk, database or API.

write(result: nannyml._typing.Result, **kwargs) Any[source]

Bases: object

A factory class that produces Writer instances for a given key.

The value for this key is passed along explicitly by the user, either by providing it directly during Writer initialization or passed along in the nann.yml configuration file.

classmethod create(key, kwargs: Optional[Dict[str, Any]] = None)[source]

Returns a Writer instance for a given string.

classmethod register(key) Callable[source]
registry: Dict[str, Type[]] = {'database': <class ''>, 'pickle': <class ''>, 'raw_files': <class ''>} str, protocol: str) str[source]