ssapy_toolkit.IO.yuchaching
Functions
|
Save a dictionary to an HDF5 cache at your yudata() location. |
|
Load a yucache() HDF5 cache and return the reconstructed dictionary. |
- ssapy_toolkit.IO.yuchaching.yucache(data=None, filename=None, *, exclude_names=None, exclude_private=True, include_locals=True, only_picklable=False, compression='gzip', compression_opts=4, add_timestamp=True)[source]
Save a dictionary to an HDF5 cache at your yudata() location.
- If data is None:
captures caller globals (+ locals if include_locals=True)
skips modules/functions/classes (so it’s mostly “data variables”)
- If data is a dict:
saves only that dict (after filtering)
- Values:
dict -> subgroup recursion ndarray/array-like -> dataset (compressed) str/bytes/scalars -> dataset fallback -> pickled bytes dataset
- ssapy_toolkit.IO.yuchaching.yuload(name_or_path, *, summary=True, max_items=200)[source]
Load a yucache() HDF5 cache and return the reconstructed dictionary.
If name_or_path exists as a path, use it.
Otherwise treat it as a name under yudata(…).
If summary=True, prints a path summary of the HDF5 contents.