modelrunner.storage.backend.text_base module
- class TextStorageBase(path, *, mode='read', simplify=True, **kwargs)[source]
Bases:
MemoryStorage
base class for storage that stores data in a text file
Note that the data is only written once the storage is closed.
- Parameters:
path (str or
Path
) – File path to the filemode (str or
AccessMode
) – The file mode with which the storage is accessed. Determines allowed operations.simplify (bool) – Flag indicating whether the data is stored in a simplified form