Skip to main content

Manifest + operations library -- the DazzleLib stack's L3 orchestration layer (PreserveManifest, transactional copy/move/restore/verify, link policy).

Project description

dazzle-preservelib

PyPI Release Date Python 3.9+ License: MIT Platform

Manifest + operations library -- the L3 orchestration layer of the DazzleLib stack.

It owns the preserve domain: the PreserveManifest (a content-hash record of what was copied, with DAG lineage), transactional copy / move / restore / verify operations, destination-conflict resolution, and link-handling policy. It delegates the actual filesystem mechanics down the stack.

What this owns (and what it delegates)

Concern Layer
Manifest, operations, conflict resolution, link policy, verification dazzle-preservelib (L3, this lib)
File/link mechanics (create/detect/read/remove, copy, hash, metadata, disk-space) dazzle-filekit (L1)
UNC <-> drive identity unctools (L0)
Shared Protocols / TypedDicts / exception root dazzle-lib (B)
.dazzlelink record bridge (optional [dazzlelink] extra) dazzle-linklib (L2)

The orchestration and policy live here; the primitives they stand on belong to the layers below. This library is the destination of the P3 extraction that collapses three drifting preservelib copies (preserve, ghtraf, safedel) into one canonical home.

The stack

Layer Library Role
B dazzle-lib bedrock contracts
L0 unctools path identity
L1 dazzle-filekit filesystem primitives
L2 dazzle-linklib link record + resolver
L3 dazzle-preservelib (this) manifest + operations
dazzle-treelib traversal engine

Status

Pre-release (P3 extraction in progress). This repository is being populated by the P3 extraction of preservelib from the preserve project: the manifest

  • operations move here as a standalone library, the filesystem primitives delegate down to dazzle-filekit, and the preserve CLI thins to a consumer. The first functional release will be 0.8.0 (continuing the preserve lineage). See the Roadmap.

Installation

pip install dazzle-preservelib

From source

git clone https://github.com/DazzleLib/dazzle-preservelib.git
cd dazzle-preservelib
pip install -e ".[dev]"

Development

python -m venv .venv
source .venv/bin/activate   # or .venv\Scripts\activate on Windows
pip install -e ".[dev]"

# Run tests
python -m pytest tests/ -v

# Install git hooks
bash scripts/install-hooks.sh

License

MIT. See LICENSE for details. The whole DazzleLib stack is MIT (STACK-MAP D11).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dazzle_preservelib-0.8.1.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dazzle_preservelib-0.8.1-py3-none-any.whl (77.9 kB view details)

Uploaded Python 3

File details

Details for the file dazzle_preservelib-0.8.1.tar.gz.

File metadata

  • Download URL: dazzle_preservelib-0.8.1.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dazzle_preservelib-0.8.1.tar.gz
Algorithm Hash digest
SHA256 b83fd171c9e4cde5c19b7cba7f8618a3a2ab598742ead5f5f6d08ec952074a8e
MD5 784ade2c83e3f608cf7cf3126ee1f633
BLAKE2b-256 5502918a53ddee47a65b36f0202d78571e090be94e168160a0817fc9126844a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzle_preservelib-0.8.1.tar.gz:

Publisher: release.yml on DazzleLib/dazzle-preservelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dazzle_preservelib-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dazzle_preservelib-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd75b17b7af3dc3d5c02a9c56c9c9249f6d72743b646deeb5677baac20730bb4
MD5 7d202e9f1f69c49e02d4ba22d90d4938
BLAKE2b-256 2d576d1c46be7275c8244e05692e3cd81a411bc18023dbd6b0eae6ec6db88538

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzle_preservelib-0.8.1-py3-none-any.whl:

Publisher: release.yml on DazzleLib/dazzle-preservelib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page