|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Data Structures | |
| class | StorageError |
| User-facing storage workflow failure. More... | |
Functions | |
| str | _utc_now () |
| Return a stable UTC timestamp for storage metadata. | |
| str | _human_bytes (int value) |
| Format a byte count for concise command output. | |
| str | _sha256_file (str path) |
| Calculate SHA-256 without loading a potentially large file into memory. | |
| None | _atomic_write_json (str path, dict payload) |
| Atomically replace a JSON state or manifest file. | |
| _read_json (str path) | |
| Read a JSON mapping when present, otherwise return None. | |
| _find_upwards (str start, str filename) | |
| Find the nearest named file at or above a filesystem anchor. | |
| str | resolve_storage_config_path (str explicit_path=None, bool require=True) |
| Resolve an explicit or nearest workspace storage configuration. | |
| dict | load_storage_profile (str profile_name=None, str config_path=None) |
| Load and validate one non-secret rclone storage profile. | |
| str | _remote_join (str remote, *str parts) |
| Join path components without corrupting rclone remote syntax. | |
| str | _object_remote (dict profile, str archive_id, *str parts) |
| Return the remote path for one immutable archive object. | |
| subprocess.CompletedProcess | _run_rclone (list arguments, bool check=True) |
| Invoke rclone through the same argv-based subprocess boundary as other PICurv tools. | |
| str | _remote_sha256 (str remote_path) |
| Ask rclone to calculate or retrieve the SHA-256 of one remote object. | |
| dict | _upload_verified (str local_path, str remote_path) |
| Upload one file, then verify its remote SHA-256. | |
| bytes | _read_remote_bytes (str remote_path) |
| Read a small remote catalog object through rclone. | |
| dict | _load_remote_manifest (dict profile, str archive_id, bool require_complete=True) |
| Fetch and validate one versioned remote storage manifest. | |
| str | _state_path (str root_path) |
| Return the local storage state marker path for an artifact root. | |
| read_storage_state (str root_path) | |
| Read the nearest applicable storage marker for a run, study, or study member. | |
| bool | is_artifact_cold (str root_path) |
| Return whether a local artifact marker says payload data was pruned. | |
| list | cold_study_members (str study_path) |
| Return numbered study members whose local payload was pruned. | |
| None | require_storage_payload_local (str root_path, str operation, int checkpoint=None, checkpoints=None) |
| Reject a workflow that requires payload currently held in cold storage. | |
| dict | storage_state_summary (str root_path) |
| Return a compact storage status for summarize and status commands. | |
| str | _validate_case_id (str case_id) |
| Validate a canonical numbered study-member identifier. | |
| list | resolve_local_storage_targets (str run_dir=None, str study_dir=None, case_ids=None) |
| Resolve explicit run/study selectors into concrete artifact descriptions. | |
| bool | _path_is_within (str root, str candidate) |
| Return whether an absolute candidate remains within a root directory. | |
| str | _resolve_configured_path (str root, str value) |
| Resolve runtime-directory syntax using the run directory as working directory. | |
| list | _artifact_runtime_roots (str root) |
| Return run-like roots contained by a standalone run or whole study. | |
| list | _discover_external_paths (str root) |
| Report configured data paths that escape the archived directory boundary. | |
| list | _discover_dependencies (str root) |
| Discover absolute restart/source paths embedded in generated controls. | |
| list | _walk_archive_entries (str root) |
| Enumerate archive entries without following symlinks. | |
| _checkpoint_component (str relative_path) | |
| Return a checkpoint component token for a path inside a committed step bundle. | |
| str | _classify_component (str relative_path) |
| Classify one artifact path for packaging and local retention. | |
| list | _checkpoint_steps (list entries) |
| Return committed checkpoint steps represented in an inventory. | |
| list | _find_incomplete_checkpoints (list entries) |
| Return incomplete checkpoint paths that make archival unsafe. | |
| bool | _lock_owner_active (str metadata_path) |
| Conservatively determine whether a solver/post/storage owner marker is active. | |
| set | _collect_job_ids (payload) |
| Recursively collect submitted Slurm job IDs from scheduler metadata. | |
| dict | _slurm_activity (str root) |
| Query live Slurm state for every job recorded below an artifact scheduler directory. | |
| dict | inspect_artifact (dict target, bool query_scheduler=True) |
| Build a read-only inventory and lifecycle assessment for one artifact. | |
| None | _assert_archive_safe (dict inventory) |
| Refuse to package a changing or scheduler-ambiguous artifact. | |
| storage_operation_lock (str root_path, str operation) | |
| Hold an exclusive local storage-operation marker for one artifact. | |
| runtime_stage_lock (str root_path, str stage) | |
| Mark a locally executed solver/post stage as active for storage safety. | |
| str | _select_compression (str requested, int total_bytes, dict profile) |
| Resolve automatic or configured compression policy. | |
| str | _chunk_extension (str compression) |
| Return the archive suffix for a compression policy. | |
| list | _build_chunk_specs (dict inventory, int chunk_size_bytes) |
| Group archive entries into independently transferable component chunks. | |
| str | _safe_component_name (str component) |
| Convert a component token into a portable archive filename fragment. | |
| None | _write_tar_chunk (str root, dict spec, str destination, str compression) |
| Package explicitly inventoried entries without following symlinks. | |
| list | _capture_study_context (dict target) |
| Embed small study control-plane files with an individually archived member. | |
| dict | _config_fingerprints (str root) |
| Hash small canonical YAML inputs stored under an artifact. | |
| dict | _git_provenance (str root) |
| Record best-effort current source revision and dirty state. | |
| dict | _parse_tags (raw_tags) |
| Parse repeatable KEY=VALUE tags into deterministic metadata. | |
| dict | build_storage_plan (dict target, dict profile, str compression=None) |
| Build the read-only plan consumed by protect and offload. | |
| None | _render_plan (dict plan) |
| Print a concise archive/offload plan. | |
| dict | archive_artifact (dict target, dict profile, str label=None, tags=None, str compression=None, bool prune_local=False) |
| Package, upload, verify, register, and optionally prune one artifact. | |
| None | _prune_archived_payload (str root, dict inventory) |
| Remove only verified heavy payload while retaining control-plane files. | |
| list | list_remote_manifests (dict profile) |
| Enumerate completed archive manifests from the remote catalog. | |
| dict | verify_remote_archive (dict profile, str archive_id) |
| Verify the completion marker and every stored chunk checksum. | |
| None | _validate_tar_members (tarfile.TarFile archive) |
| Reject archive members that could escape the restore destination. | |
| None | _extract_chunk (str path, str destination) |
| Safely extract one verified tar chunk into a staging tree. | |
| None | _restore_study_context (dict manifest, str case_destination) |
| Recreate missing study control-plane files around a restored member. | |
| None | _merge_tree (str source, str destination) |
| Merge a verified restore tree into a known cold artifact skeleton. | |
| list | _rebase_restored_text_paths (str root, list replacements) |
| Rebase known generated text artifacts after an explicit relocated restore. | |
| dict | restore_archive (dict profile, str archive_id, str destination=None, checkpoints=None, bool force=False) |
| Download, verify, extract, and materialize an archive or selected checkpoints. | |
| str | _resolve_archive_id_from_args (args) |
| Resolve an explicit archive ID or a local artifact marker. | |
| None | _render_status (dict inventory) |
| Render one artifact status row and safety details. | |
| None | storage_setup_workflow (args) |
| Create or update a non-secret workspace storage profile. | |
| None | storage_status_workflow (args) |
| Print local storage and lifecycle status for selected artifacts. | |
| None | storage_plan_workflow (args) |
| Render a read-only packaging and safety plan. | |
| None | storage_archive_workflow (args, bool prune_local) |
| Execute protect or offload for one or more explicit local targets. | |
| None | storage_restore_workflow (args) |
| Restore a remote archive by globally unique ID or local marker. | |
| None | storage_verify_workflow (args) |
| Verify all remote chunks for one archive. | |
| None | storage_list_workflow (args) |
| Search the remote manifest catalog without local artifact state. | |
| None | storage_show_workflow (args) |
| Show one complete remote archive manifest. | |
| None | storage_workflow (args) |
| Dispatch nested storage actions using existing PICurv workflow conventions. | |
| argparse.ArgumentParser | add_storage_parser (subparsers) |
| Attach the nested storage command parser to PICurv's top-level parser. | |
Variables | |
| str | STORAGE_CONFIG_FILENAME = ".picurv-storage.yml" |
| str | STORAGE_STATE_FILENAME = ".picurv-storage.json" |
| str | STORAGE_LOCK_FILENAME = ".picurv-storage.lock.json" |
| int | STORAGE_SCHEMA_VERSION = 1 |
| str | REMOTE_OBJECTS_DIRECTORY = "objects" |
| str | REMOTE_MANIFEST_FILENAME = "manifest.json" |
| str | REMOTE_COMPLETE_FILENAME = "COMPLETE" |
| str | DEFAULT_PROFILE_NAME = "archive" |
| float | DEFAULT_CHUNK_SIZE_GIB = 8.0 |
| int | AUTO_NO_COMPRESSION_BYTES = 256 * 1024 * 1024 |
| int | AUTO_MAXIMUM_COMPRESSION_BYTES = 20 * 1024 * 1024 * 1024 |
| CHECKPOINT_DIRECTORY_PATTERN = re.compile(r"^step_(\d{12})$") | |
| INCOMPLETE_CHECKPOINT_PATTERN = re.compile(r"^\.step_\d{12}\.incomplete\.") | |
| ARCHIVE_ID_PATTERN = re.compile(r"^[0-9a-f]{32}$") | |
| int | KNOWN_CHECKPOINT_VERSION = 1 |
|
protected |
Return a stable UTC timestamp for storage metadata.
Definition at line 54 of file storage.py.
|
protected |
Format a byte count for concise command output.
| [in] | value | Value supplied through the value argument. |
Definition at line 62 of file storage.py.
|
protected |
Calculate SHA-256 without loading a potentially large file into memory.
| [in] | path | Value supplied through the path argument. |
Definition at line 76 of file storage.py.
|
protected |
Atomically replace a JSON state or manifest file.
| [in] | path | Value supplied through the path argument. |
| [in] | payload | Value supplied through the payload argument. |
Definition at line 92 of file storage.py.
|
protected |
Read a JSON mapping when present, otherwise return None.
| [in] | path | Value supplied through the path argument. |
Definition at line 109 of file storage.py.
|
protected |
Find the nearest named file at or above a filesystem anchor.
| [in] | start | Value supplied through the start argument. |
| [in] | filename | Value supplied through the filename argument. |
Definition at line 123 of file storage.py.
| str picurv_cli.storage.resolve_storage_config_path | ( | str | explicit_path = None, |
| bool | require = True |
||
| ) |
Resolve an explicit or nearest workspace storage configuration.
| [in] | explicit_path | Optional user-selected YAML path. |
| [in] | require | Whether a missing configuration is an error. |
Definition at line 143 of file storage.py.
| dict picurv_cli.storage.load_storage_profile | ( | str | profile_name = None, |
| str | config_path = None |
||
| ) |
Load and validate one non-secret rclone storage profile.
| [in] | profile_name | Value supplied through the profile_name argument. |
| [in] | config_path | Value supplied through the config_path argument. |
Definition at line 164 of file storage.py.
|
protected |
Join path components without corrupting rclone remote syntax.
| [in] | remote | Value supplied through the remote argument. |
| [in] | parts | Value supplied through the parts argument. |
Definition at line 198 of file storage.py.
|
protected |
Return the remote path for one immutable archive object.
| [in] | profile | Value supplied through the profile argument. |
| [in] | archive_id | Value supplied through the archive_id argument. |
| [in] | parts | Value supplied through the parts argument. |
Definition at line 214 of file storage.py.
|
protected |
Invoke rclone through the same argv-based subprocess boundary as other PICurv tools.
| [in] | arguments | Value supplied through the arguments argument. |
| [in] | check | Value supplied through the check argument. |
Definition at line 225 of file storage.py.
|
protected |
Ask rclone to calculate or retrieve the SHA-256 of one remote object.
| [in] | remote_path | Value supplied through the remote_path argument. |
Definition at line 247 of file storage.py.
|
protected |
Upload one file, then verify its remote SHA-256.
| [in] | local_path | Value supplied through the local_path argument. |
| [in] | remote_path | Value supplied through the remote_path argument. |
Definition at line 261 of file storage.py.
|
protected |
Read a small remote catalog object through rclone.
| [in] | remote_path | Value supplied through the remote_path argument. |
Definition at line 279 of file storage.py.
|
protected |
Fetch and validate one versioned remote storage manifest.
| [in] | profile | Value supplied through the profile argument. |
| [in] | archive_id | Value supplied through the archive_id argument. |
| [in] | require_complete | Value supplied through the require_complete argument. |
Definition at line 297 of file storage.py.
|
protected |
Return the local storage state marker path for an artifact root.
| [in] | root_path | Value supplied through the root_path argument. |
Definition at line 326 of file storage.py.
| picurv_cli.storage.read_storage_state | ( | str | root_path | ) |
Read the nearest applicable storage marker for a run, study, or study member.
| [in] | root_path | Value supplied through the root_path argument. |
Definition at line 335 of file storage.py.
| bool picurv_cli.storage.is_artifact_cold | ( | str | root_path | ) |
Return whether a local artifact marker says payload data was pruned.
| [in] | root_path | Value supplied through the root_path argument. |
Definition at line 353 of file storage.py.
| list picurv_cli.storage.cold_study_members | ( | str | study_path | ) |
Return numbered study members whose local payload was pruned.
| [in] | study_path | Value supplied through the study_path argument. |
Definition at line 363 of file storage.py.
| None picurv_cli.storage.require_storage_payload_local | ( | str | root_path, |
| str | operation, | ||
| int | checkpoint = None, |
||
checkpoints = None |
|||
| ) |
Reject a workflow that requires payload currently held in cold storage.
| [in] | root_path | Run or study-member directory checked by an existing workflow. |
| [in] | operation | Human-readable consuming operation. |
| [in] | checkpoint | Optional single required checkpoint step. |
| [in] | checkpoints | Optional iterable of every required checkpoint step. |
Definition at line 378 of file storage.py.
| dict picurv_cli.storage.storage_state_summary | ( | str | root_path | ) |
Return a compact storage status for summarize and status commands.
| [in] | root_path | Value supplied through the root_path argument. |
Definition at line 417 of file storage.py.
|
protected |
Validate a canonical numbered study-member identifier.
| [in] | case_id | Value supplied through the case_id argument. |
Definition at line 439 of file storage.py.
| list picurv_cli.storage.resolve_local_storage_targets | ( | str | run_dir = None, |
| str | study_dir = None, |
||
case_ids = None |
|||
| ) |
Resolve explicit run/study selectors into concrete artifact descriptions.
| [in] | run_dir | Value supplied through the run_dir argument. |
| [in] | study_dir | Value supplied through the study_dir argument. |
| [in] | case_ids | Value supplied through the case_ids argument. |
Definition at line 450 of file storage.py.
|
protected |
Return whether an absolute candidate remains within a root directory.
| [in] | root | Value supplied through the root argument. |
| [in] | candidate | Value supplied through the candidate argument. |
Definition at line 509 of file storage.py.
|
protected |
Resolve runtime-directory syntax using the run directory as working directory.
| [in] | root | Value supplied through the root argument. |
| [in] | value | Value supplied through the value argument. |
Definition at line 522 of file storage.py.
|
protected |
Return run-like roots contained by a standalone run or whole study.
| [in] | root | Value supplied through the root argument. |
Definition at line 532 of file storage.py.
|
protected |
Report configured data paths that escape the archived directory boundary.
| [in] | root | Value supplied through the root argument. |
Definition at line 548 of file storage.py.
|
protected |
Discover absolute restart/source paths embedded in generated controls.
| [in] | root | Value supplied through the root argument. |
Definition at line 598 of file storage.py.
|
protected |
Enumerate archive entries without following symlinks.
| [in] | root | Value supplied through the root argument. |
Definition at line 627 of file storage.py.
|
protected |
Return a checkpoint component token for a path inside a committed step bundle.
| [in] | relative_path | Value supplied through the relative_path argument. |
Definition at line 678 of file storage.py.
|
protected |
Classify one artifact path for packaging and local retention.
| [in] | relative_path | Value supplied through the relative_path argument. |
Definition at line 692 of file storage.py.
Return committed checkpoint steps represented in an inventory.
| [in] | entries | Value supplied through the entries argument. |
Definition at line 717 of file storage.py.
Return incomplete checkpoint paths that make archival unsafe.
| [in] | entries | Value supplied through the entries argument. |
Definition at line 732 of file storage.py.
|
protected |
Conservatively determine whether a solver/post/storage owner marker is active.
| [in] | metadata_path | Value supplied through the metadata_path argument. |
Definition at line 744 of file storage.py.
|
protected |
Recursively collect submitted Slurm job IDs from scheduler metadata.
| [in] | payload | Value supplied through the payload argument. |
Definition at line 770 of file storage.py.
|
protected |
Query live Slurm state for every job recorded below an artifact scheduler directory.
| [in] | root | Value supplied through the root argument. |
Definition at line 788 of file storage.py.
| dict picurv_cli.storage.inspect_artifact | ( | dict | target, |
| bool | query_scheduler = True |
||
| ) |
Build a read-only inventory and lifecycle assessment for one artifact.
| [in] | target | Value supplied through the target argument. |
| [in] | query_scheduler | Value supplied through the query_scheduler argument. |
Definition at line 825 of file storage.py.
|
protected |
Refuse to package a changing or scheduler-ambiguous artifact.
| [in] | inventory | Value supplied through the inventory argument. |
Definition at line 858 of file storage.py.
| picurv_cli.storage.storage_operation_lock | ( | str | root_path, |
| str | operation | ||
| ) |
Hold an exclusive local storage-operation marker for one artifact.
| [in] | root_path | Value supplied through the root_path argument. |
| [in] | operation | Value supplied through the operation argument. |
Definition at line 883 of file storage.py.
| picurv_cli.storage.runtime_stage_lock | ( | str | root_path, |
| str | stage | ||
| ) |
Mark a locally executed solver/post stage as active for storage safety.
| [in] | root_path | Run directory used as the runtime working directory. |
| [in] | stage | Runtime stage label; storage currently uses this for solver execution. |
Definition at line 914 of file storage.py.
|
protected |
Resolve automatic or configured compression policy.
| [in] | requested | Value supplied through the requested argument. |
| [in] | total_bytes | Value supplied through the total_bytes argument. |
| [in] | profile | Value supplied through the profile argument. |
Definition at line 942 of file storage.py.
|
protected |
Return the archive suffix for a compression policy.
| [in] | compression | Value supplied through the compression argument. |
Definition at line 963 of file storage.py.
|
protected |
Group archive entries into independently transferable component chunks.
| [in] | inventory | Value supplied through the inventory argument. |
| [in] | chunk_size_bytes | Value supplied through the chunk_size_bytes argument. |
Definition at line 972 of file storage.py.
|
protected |
Convert a component token into a portable archive filename fragment.
| [in] | component | Value supplied through the component argument. |
Definition at line 1006 of file storage.py.
|
protected |
Package explicitly inventoried entries without following symlinks.
| [in] | root | Value supplied through the root argument. |
| [in] | spec | Value supplied through the spec argument. |
| [in] | destination | Value supplied through the destination argument. |
| [in] | compression | Value supplied through the compression argument. |
Definition at line 1015 of file storage.py.
|
protected |
Embed small study control-plane files with an individually archived member.
| [in] | target | Value supplied through the target argument. |
Definition at line 1043 of file storage.py.
|
protected |
Hash small canonical YAML inputs stored under an artifact.
| [in] | root | Value supplied through the root argument. |
Definition at line 1071 of file storage.py.
|
protected |
Record best-effort current source revision and dirty state.
| [in] | root | Value supplied through the root argument. |
Definition at line 1091 of file storage.py.
|
protected |
Parse repeatable KEY=VALUE tags into deterministic metadata.
| [in] | raw_tags | Value supplied through the raw_tags argument. |
Definition at line 1114 of file storage.py.
| dict picurv_cli.storage.build_storage_plan | ( | dict | target, |
| dict | profile, | ||
| str | compression = None |
||
| ) |
Build the read-only plan consumed by protect and offload.
| [in] | target | Value supplied through the target argument. |
| [in] | profile | Value supplied through the profile argument. |
| [in] | compression | Value supplied through the compression argument. |
Definition at line 1129 of file storage.py.
|
protected |
Print a concise archive/offload plan.
| [in] | plan | Value supplied through the plan argument. |
Definition at line 1155 of file storage.py.
| dict picurv_cli.storage.archive_artifact | ( | dict | target, |
| dict | profile, | ||
| str | label = None, |
||
tags = None, |
|||
| str | compression = None, |
||
| bool | prune_local = False |
||
| ) |
Package, upload, verify, register, and optionally prune one artifact.
| [in] | target | Value supplied through the target argument. |
| [in] | profile | Value supplied through the profile argument. |
| [in] | label | Value supplied through the label argument. |
| [in] | tags | Value supplied through the tags argument. |
| [in] | compression | Value supplied through the compression argument. |
| [in] | prune_local | Value supplied through the prune_local argument. |
Definition at line 1179 of file storage.py.
|
protected |
Remove only verified heavy payload while retaining control-plane files.
| [in] | root | Value supplied through the root argument. |
| [in] | inventory | Value supplied through the inventory argument. |
Definition at line 1288 of file storage.py.
| list picurv_cli.storage.list_remote_manifests | ( | dict | profile | ) |
Enumerate completed archive manifests from the remote catalog.
| [in] | profile | Value supplied through the profile argument. |
Definition at line 1316 of file storage.py.
| dict picurv_cli.storage.verify_remote_archive | ( | dict | profile, |
| str | archive_id | ||
| ) |
Verify the completion marker and every stored chunk checksum.
| [in] | profile | Value supplied through the profile argument. |
| [in] | archive_id | Value supplied through the archive_id argument. |
Definition at line 1338 of file storage.py.
|
protected |
Reject archive members that could escape the restore destination.
| [in] | archive | Value supplied through the archive argument. |
Definition at line 1357 of file storage.py.
|
protected |
Safely extract one verified tar chunk into a staging tree.
| [in] | path | Value supplied through the path argument. |
| [in] | destination | Value supplied through the destination argument. |
Definition at line 1379 of file storage.py.
|
protected |
Recreate missing study control-plane files around a restored member.
| [in] | manifest | Value supplied through the manifest argument. |
| [in] | case_destination | Value supplied through the case_destination argument. |
Definition at line 1393 of file storage.py.
|
protected |
Merge a verified restore tree into a known cold artifact skeleton.
| [in] | source | Value supplied through the source argument. |
| [in] | destination | Value supplied through the destination argument. |
Definition at line 1417 of file storage.py.
Rebase known generated text artifacts after an explicit relocated restore.
| [in] | root | Value supplied through the root argument. |
| [in] | replacements | Value supplied through the replacements argument. |
Definition at line 1440 of file storage.py.
| dict picurv_cli.storage.restore_archive | ( | dict | profile, |
| str | archive_id, | ||
| str | destination = None, |
||
checkpoints = None, |
|||
| bool | force = False |
||
| ) |
Download, verify, extract, and materialize an archive or selected checkpoints.
| [in] | profile | Value supplied through the profile argument. |
| [in] | archive_id | Value supplied through the archive_id argument. |
| [in] | destination | Value supplied through the destination argument. |
| [in] | checkpoints | Value supplied through the checkpoints argument. |
| [in] | force | Value supplied through the force argument. |
Definition at line 1468 of file storage.py.
|
protected |
Resolve an explicit archive ID or a local artifact marker.
| [in] | args | Value supplied through the args argument. |
Definition at line 1561 of file storage.py.
|
protected |
Render one artifact status row and safety details.
| [in] | inventory | Value supplied through the inventory argument. |
Definition at line 1581 of file storage.py.
| None picurv_cli.storage.storage_setup_workflow | ( | args | ) |
Create or update a non-secret workspace storage profile.
| [in] | args | Value supplied through the args argument. |
Definition at line 1596 of file storage.py.
| None picurv_cli.storage.storage_status_workflow | ( | args | ) |
Print local storage and lifecycle status for selected artifacts.
| [in] | args | Value supplied through the args argument. |
Definition at line 1632 of file storage.py.
| None picurv_cli.storage.storage_plan_workflow | ( | args | ) |
Render a read-only packaging and safety plan.
| [in] | args | Value supplied through the args argument. |
Definition at line 1659 of file storage.py.
| None picurv_cli.storage.storage_archive_workflow | ( | args, | |
| bool | prune_local | ||
| ) |
Execute protect or offload for one or more explicit local targets.
| [in] | args | Value supplied through the args argument. |
| [in] | prune_local | Value supplied through the prune_local argument. |
Definition at line 1674 of file storage.py.
| None picurv_cli.storage.storage_restore_workflow | ( | args | ) |
Restore a remote archive by globally unique ID or local marker.
| [in] | args | Value supplied through the args argument. |
Definition at line 1697 of file storage.py.
| None picurv_cli.storage.storage_verify_workflow | ( | args | ) |
Verify all remote chunks for one archive.
| [in] | args | Value supplied through the args argument. |
Definition at line 1713 of file storage.py.
| None picurv_cli.storage.storage_list_workflow | ( | args | ) |
Search the remote manifest catalog without local artifact state.
| [in] | args | Value supplied through the args argument. |
Definition at line 1726 of file storage.py.
| None picurv_cli.storage.storage_show_workflow | ( | args | ) |
Show one complete remote archive manifest.
| [in] | args | Value supplied through the args argument. |
Definition at line 1750 of file storage.py.
| None picurv_cli.storage.storage_workflow | ( | args | ) |
Dispatch nested storage actions using existing PICurv workflow conventions.
| [in] | args | Value supplied through the args argument. |
Definition at line 1760 of file storage.py.
| argparse.ArgumentParser picurv_cli.storage.add_storage_parser | ( | subparsers | ) |
Attach the nested storage command parser to PICurv's top-level parser.
| [in] | subparsers | Value supplied through the subparsers argument. |
Definition at line 1792 of file storage.py.
| str picurv_cli.storage.STORAGE_CONFIG_FILENAME = ".picurv-storage.yml" |
Definition at line 33 of file storage.py.
| str picurv_cli.storage.STORAGE_STATE_FILENAME = ".picurv-storage.json" |
Definition at line 34 of file storage.py.
| str picurv_cli.storage.STORAGE_LOCK_FILENAME = ".picurv-storage.lock.json" |
Definition at line 35 of file storage.py.
| int picurv_cli.storage.STORAGE_SCHEMA_VERSION = 1 |
Definition at line 36 of file storage.py.
| str picurv_cli.storage.REMOTE_OBJECTS_DIRECTORY = "objects" |
Definition at line 37 of file storage.py.
| str picurv_cli.storage.REMOTE_MANIFEST_FILENAME = "manifest.json" |
Definition at line 38 of file storage.py.
| str picurv_cli.storage.REMOTE_COMPLETE_FILENAME = "COMPLETE" |
Definition at line 39 of file storage.py.
| str picurv_cli.storage.DEFAULT_PROFILE_NAME = "archive" |
Definition at line 40 of file storage.py.
| float picurv_cli.storage.DEFAULT_CHUNK_SIZE_GIB = 8.0 |
Definition at line 41 of file storage.py.
| int picurv_cli.storage.AUTO_NO_COMPRESSION_BYTES = 256 * 1024 * 1024 |
Definition at line 42 of file storage.py.
| int picurv_cli.storage.AUTO_MAXIMUM_COMPRESSION_BYTES = 20 * 1024 * 1024 * 1024 |
Definition at line 43 of file storage.py.
| picurv_cli.storage.CHECKPOINT_DIRECTORY_PATTERN = re.compile(r"^step_(\d{12})$") |
Definition at line 44 of file storage.py.
| picurv_cli.storage.INCOMPLETE_CHECKPOINT_PATTERN = re.compile(r"^\.step_\d{12}\.incomplete\.") |
Definition at line 45 of file storage.py.
| picurv_cli.storage.ARCHIVE_ID_PATTERN = re.compile(r"^[0-9a-f]{32}$") |
Definition at line 46 of file storage.py.
| int picurv_cli.storage.KNOWN_CHECKPOINT_VERSION = 1 |
Definition at line 47 of file storage.py.