autostore.calcn.registry#
Calculation hash registry.
Module Contents#
Classes#
Hash registry. |
Functions#
Hash calculation metadata using named hash from registry. |
Data#
API#
- autostore.calcn.registry.HashFunc#
None
- class autostore.calcn.registry.HashRegistry#
Hash registry.
Initialization
Initialize hash registry.
- register(name: str) collections.abc.Callable[[autostore.calcn.registry.HashFunc], autostore.calcn.registry.HashFunc]#
Register function in hash registry (decorator).
- get(name: str) autostore.calcn.registry.HashFunc#
Get registered hash by name.
- available() tuple[str, ...]#
Get registered hash names.
- autostore.calcn.registry.hash_registry#
‘HashRegistry(…)’
- autostore.calcn.registry.calculation_hash(calc: autostore.calcn.core.Calculation, name: str = 'minimal') str#
Hash calculation metadata using named hash from registry.
- Parameters:
calc – Calculation metadata.
name – Hash registry name, e.g. “full” or “minimal”. Use
hash_registry.available()to get list of available names.
- Returns:
Hash string.