2.1.2.13. enkie.storage
Utility methods for managing storage of cached data.
2.1.2.13.1. Module Contents
- enkie.storage.get_data_path() pathlib.Path [source]
Gets the path usage for storing cached data.
- Returns:
Tha cache path.
- Return type:
Path
- enkie.storage.clear_enkie_cache() None [source]
Clears the cache of the enkie package. This includes cache MetaNetX mapping files and cached Uniprot requests.
- enkie.storage.get_cached_filepath(settings: equilibrator_cache.zenodo.ZenodoSettings) pathlib.Path [source]
Get data from a file stored in Zenodo (or from cache, if available). Based on code by Elad Noor and Moritz Beber in equilibrator_cache,: https://gitlab.com/equilibrator/equilibrator-cache/-/blob/2249b3f334ebe8eed9b62475644bf7a2e385cde1/src/equilibrator_cache/zenodo.py
- Parameters:
settings (ZenodoSettings) – Configuration for the interaction with Zenodo.org.
- Returns:
The path to the locally cached file.
- Return type:
Path