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.0.tar.gz (92.0 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.0-py3-none-any.whl (77.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dazzle_preservelib-0.8.0.tar.gz
  • Upload date:
  • Size: 92.0 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.0.tar.gz
Algorithm Hash digest
SHA256 5d3b8c1bf268b8d809b191d43a22d93eace5f651fa3bb956f78d954a776cc7e1
MD5 a13202320a3caecd7bf5c4acd286509a
BLAKE2b-256 4bf6e39d85d746eab0fa4e0e1bcbb4606f93d8f89d31afb87e62459762836d34

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzle_preservelib-0.8.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dazzle_preservelib-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c85d2928bff8f323a008dd3455306c04229d9e537a82bc46529a19380636b0
MD5 00f703fcd3ed98fd0fdcc52e39ba6692
BLAKE2b-256 7d9e2a53d89b3b0ee634276a012947524c6903a71e8a7a83ff7b1730f9ec8f05

See more details on using hashes here.

Provenance

The following attestation bundles were made for dazzle_preservelib-0.8.0-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