Storage constants, profiles, and the local artifact state marker. More...
Go to the source code of this file.
Data Structures | |
| class | picurv_cli.storage.models.StorageError |
| User-facing storage workflow failure. More... | |
Namespaces | |
| namespace | picurv_cli |
| namespace | picurv_cli.storage |
| namespace | picurv_cli.storage.models |
Functions | |
| str | picurv_cli.storage.models._utc_now () |
| Return a stable UTC timestamp for storage metadata. | |
| str | picurv_cli.storage.models._human_bytes (int value) |
| Format a byte count for concise command output. | |
| str | picurv_cli.storage.models._sha256_file (str path) |
| Calculate SHA-256 without loading a potentially large file into memory. | |
| None | picurv_cli.storage.models._atomic_write_json (str path, dict payload) |
| Atomically replace a JSON state or manifest file. | |
| picurv_cli.storage.models._read_json (str path) | |
| Read a JSON mapping when present, otherwise return None. | |
| picurv_cli.storage.models.read_artifact_manifest (str root_path) | |
| Read a local artifact's own identity manifest, run or study. | |
| dict | picurv_cli.storage.models.read_artifact_identity (str root_path) |
| Resolve what a local artifact directory is, and what it calls itself. | |
| picurv_cli.storage.models._find_upwards (str start, str filename) | |
| Find the nearest named file at or above a filesystem anchor. | |
| str | picurv_cli.storage.models.storage_workspace_root (str start=None) |
| Locate the initialized workspace a storage command is standing in. | |
| str | picurv_cli.storage.models.storage_config_origin (str config_path, str workspace_root=None) |
| Classify where an active storage configuration came from. | |
| str | picurv_cli.storage.models.resolve_storage_config_path (str explicit_path=None, bool require=True) |
| Resolve an explicit or nearest workspace storage configuration. | |
| dict | picurv_cli.storage.models.load_storage_profile (str profile_name=None, str config_path=None) |
| Load and validate one non-secret rclone storage profile. | |
| str | picurv_cli.storage.models._state_path (str root_path) |
| Return the local storage state marker path for an artifact root. | |
| picurv_cli.storage.models.read_storage_state (str root_path) | |
| Read the nearest applicable storage marker for a run, study, or study member. | |
| bool | picurv_cli.storage.models.is_artifact_cold (str root_path) |
| Return whether a local artifact marker says payload data was pruned. | |
| dict | picurv_cli.storage.models.storage_state_summary (str root_path) |
| Return a compact storage status for summarize and status commands. | |
| dict | picurv_cli.storage.models._parse_tags (raw_tags) |
| Parse repeatable KEY=VALUE tags into deterministic metadata. | |
Storage constants, profiles, and the local artifact state marker.
Definition in file models.py.