deltascribe 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. deltascribe-0.1.0/.gitignore +13 -0
  2. deltascribe-0.1.0/CHANGELOG.md +25 -0
  3. deltascribe-0.1.0/Cargo.lock +1233 -0
  4. deltascribe-0.1.0/Cargo.toml +32 -0
  5. deltascribe-0.1.0/LICENSE-APACHE +17 -0
  6. deltascribe-0.1.0/LICENSE-MIT +21 -0
  7. deltascribe-0.1.0/PKG-INFO +62 -0
  8. deltascribe-0.1.0/README.md +417 -0
  9. deltascribe-0.1.0/pyproject.toml +39 -0
  10. deltascribe-0.1.0/python/Cargo.lock +1318 -0
  11. deltascribe-0.1.0/python/Cargo.toml +19 -0
  12. deltascribe-0.1.0/python/README.md +35 -0
  13. deltascribe-0.1.0/python/deltascribe/__init__.py +6 -0
  14. deltascribe-0.1.0/python/deltascribe/__init__.pyi +102 -0
  15. deltascribe-0.1.0/python/deltascribe/py.typed +1 -0
  16. deltascribe-0.1.0/python/src/lib.rs +583 -0
  17. deltascribe-0.1.0/python/tests/test_deltascribe.py +68 -0
  18. deltascribe-0.1.0/src/codec/binary.rs +172 -0
  19. deltascribe-0.1.0/src/codec/cad2d.rs +413 -0
  20. deltascribe-0.1.0/src/codec/image_codec.rs +584 -0
  21. deltascribe-0.1.0/src/codec/mesh3d.rs +597 -0
  22. deltascribe-0.1.0/src/codec/mod.rs +256 -0
  23. deltascribe-0.1.0/src/codec/odf.rs +578 -0
  24. deltascribe-0.1.0/src/codec/ooxml.rs +1174 -0
  25. deltascribe-0.1.0/src/codec/pdf.rs +809 -0
  26. deltascribe-0.1.0/src/codec/zip_container.rs +295 -0
  27. deltascribe-0.1.0/src/db/mod.rs +334 -0
  28. deltascribe-0.1.0/src/db/postgres.rs +525 -0
  29. deltascribe-0.1.0/src/db/sqlite.rs +550 -0
  30. deltascribe-0.1.0/src/delta.rs +340 -0
  31. deltascribe-0.1.0/src/diff.rs +229 -0
  32. deltascribe-0.1.0/src/error.rs +62 -0
  33. deltascribe-0.1.0/src/hash.rs +116 -0
  34. deltascribe-0.1.0/src/lib.rs +71 -0
  35. deltascribe-0.1.0/src/model.rs +235 -0
  36. deltascribe-0.1.0/src/repo.rs +1475 -0
  37. deltascribe-0.1.0/src/store.rs +862 -0
  38. deltascribe-0.1.0/tests/integration_tests.rs +1093 -0
@@ -0,0 +1,13 @@
1
+ /target/
2
+ /python/target/
3
+ /python/dist/
4
+ /python/build/
5
+ /python/*.egg-info/
6
+ **/__pycache__/
7
+ *.py[cod]
8
+ *.so
9
+ *.pyd
10
+ *.profraw
11
+ *.profdata
12
+ .deltascribe/
13
+ .venv/
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ All notable changes to `deltascribe` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-12-05
9
+
10
+ ### Added
11
+ - **Bit-exact lossless delta & versioning engine**: BLAKE3 content-addressed object store, O(N) copy/insert binary delta + zstd compression (bounded `MAX_DELTA_CHAIN_DEPTH = 16`), FastCDC content-defined chunking, and indexed `.dspk`/`.idx` packfile compaction + reachability garbage collection (`gc`).
12
+ - **Format-aware codecs**:
13
+ - Microsoft Office OOXML (`.docx`, `.xlsx`, `.pptx`): exact ZIP entry deduplication, uncompressed XML deltas, section/heading & page-break tracking, table cell-level diffs, Excel cell/formula diffs, PowerPoint slide diffs.
14
+ - OpenDocument ODF (`.odt`, `.ods`, `.odp`): exact ZIP deduplication, Writer sections, Calc sheets/cells, Impress slides.
15
+ - PDF (`.pdf`): indirect-object (`N G obj ... endobj`) & `stream ... endstream` splitting, `/Pages`/`/Kids` 1-based page number mapping, `FlateDecode` text extraction, `/Info` metadata diffs.
16
+ - Images (`.png`, `.jpg`/`.jpeg`, `.webp`): PNG chunk, JPEG marker/scan, and WebP RIFF splitting + 64×64 pixel-tile diffing & 8-connected spatial edit-region clustering.
17
+ - 2D Vector/CAD (`.svg`, `.dxf`): canvas/ID/tag diffs and DXF section/layer/entity diffs.
18
+ - 3D Meshes (`.gltf`/`.glb`, `.obj`, `.stl`): GLB JSON/BIN splitting, OBJ sub-mesh splitting, triangle-aligned Binary STL & ASCII STL + bounding-box/material/geometry diffs.
19
+ - Generic binary fallback (`BinaryCodec`) + extensible `DocumentCodec` trait via `CodecRegistry`.
20
+ - **Git-like Repository API**: `init`, `open`, `stage_file`, `stage_bytes`, `remove_file`, `commit`, `commit_file`, `read_file_at`, `extract_file`, `checkout`, `log`, `status`, `diff_revisions`, `diff_file`, `create_branch`, `delete_branch`, `create_tag`, `delete_tag`, 3-way `merge` (`AbortOnConflict`, `Ours`, `Theirs`), `resolve_rev` (`HEAD`, `HEAD~N`, branches, tags, short hashes), `stats`, and `gc`.
21
+ - **Persisted structured changelogs**: Automatic per-commit `CommitChangeLog`, `changelog(rev)`, and per-file `history_of(path)`.
22
+ - **Pluggable metadata databases (`MetadataStore`)**: Built-in **SQLite3** (default at `.deltascribe/metadata.db`) and **PostgreSQL** (`postgres` feature), `query_changes(...)`, `reindex_metadata()`, plus trait support for any custom database.
23
+ - **Pluggable blob storage (`BlobBackend`)**: Default local filesystem + packfiles, built-in `MemoryBlobBackend`, and trait support for S3/GCS/Azure Blob/R2.
24
+ - **Native Python library (`PyPI`)**: PyO3 0.30 + Maturin `abi3-py39` wheels, PEP 561 type stubs (`__init__.pyi`), context manager (`with Repository.init(...) as repo:`), and full Rust API parity.
25
+ - **CI/CD**: GitHub Actions `ci.yaml` (build, Clippy, unit tests, ≥ 50% coverage, cross-platform regression tests, `cargo-audit`, Trivy, CodeQL, Semgrep) and `release.yaml` (automated crates.io + PyPI publishing).