open_data_store#
- open_data_store(base_path: Union[str, pathlib.Path], suffix: Optional[str] = None, limit: Optional[int] = None, mode: Union[str, cogent3.app.data_store.Mode] = Mode.r, **kwargs) cogent3.app.data_store.DataStoreABC #
returns DataStore instance of a type specified by the path suffix
- Parameters
- base_path
path to directory or db
- suffix
suffix of filenames
- limit
the number of matches to return
- mode
opening mode, either r, w, a as per file opening modes