Skip to main content

fabricatio-checkpoint

MIT Python Versions PyPI Version PyPI Downloads PyPI Downloads Bindings: PyO3 Build Tool: uv + maturin

Worktree checkpointing via shadow Git repositories for fabricatio workflows. Save, diff, rollback individual files, or reset entire directories — without interfering with any existing Git repository.

Installation

pip install fabricatio[checkpoint]

For a full installation with all fabricatio components:

pip install fabricatio[full]

Overview

fabricatio-checkpoint maintains a bare Git shadow repository for each tracked worktree directory. It stages and commits file changes behind the scenes, enabling:

  • Checkpoints — save worktree state at any point with a message
  • Selective rollback — restore individual files to a previous commit without touching others
  • Full reset — revert the entire worktree to a prior checkpoint
  • Diffs — retrieve file-level changes between any commit and the current state
  • Status — list modified, added, or deleted files since the last checkpoint

The shadow repositories live under ~/.fabricatio-checkpoint/ by default and never touch any existing .git directory.

Key Types

CheckpointService

Manages the lifecycle of shadow repositories. Created once per process via the singleton helper.

Method Description
get_store(worktree_dir) Returns the CheckPointStore for a directory (creates on first access)
workspaces() Lists all tracked worktree directories
prune_invalid() Removes stores whose worktrees no longer exist on disk
from fabricatio_checkpoint.inited_service import get_checkpoint_service

svc = get_checkpoint_service()
store = svc.get_store("/path/to/project")

CheckPointStore

A shadow repository bound to one worktree directory. Backed by a bare Git repo (Rust implementation via PyO3).

Method Description
save(commit_msg=None) Stage all changes and commit. Returns the commit OID.
head() Returns the OID of the current HEAD commit.
commits() Returns all commit OIDs in chronological order.
reset(commit_id) Restore the entire worktree to a given commit.
rollback(commit_id, file_path) Restore a single file from a commit.
get_file_diff(commit_id, file_path) Returns the unified diff for a file at a commit.
get_status() Lists changed files since HEAD (staged + unstaged).
store = svc.get_store("/path/to/project")

cid = store.save("snapshot before refactor")
store.rollback(cid, "src/main.py")
store.reset(cid)
print(store.get_file_diff(cid, "src/main.py"))

Checkpoint (Capability Mixin)

A UseLLM-compatible mixin for use within fabricatio agent roles.

Method Description
save_checkpoint(msg) Save current state with a message
rollback(commit_id, file_path) Restore one file to a previous commit
reset_to_checkpoint(commit_id) Reset entire worktree to a commit
get_file_diff(commit_id, file_path) Diff one file against a commit
mount_checkpoint_store(store) Attach a specific store (defaults to worktree_dir)
unmount_checkpoint_store() Detach the current store
from fabricatio_checkpoint.capabilities.checkpoint import Checkpoint

class MyAgent(Checkpoint, SomeLLMRole):
    worktree_dir = Path("/path/to/project")

agent = MyAgent().mount_checkpoint_store()
cid = agent.save_checkpoint("before editing")
agent.rollback(cid, "config.toml")

prune_stores(stores_root)

Free function: deletes shadow repositories under stores_root whose worktree directories no longer exist.

from fabricatio_checkpoint.rust import prune_stores

prune_stores(Path.home() / ".fabricatio-checkpoint")

CLI

The package ships a ckpt command (requires pip install fabricatio-checkpoint[cli]):

ckpt --workspace /path/to/project save "checkpoint message"
ckpt --workspace /path/to/project reset <commit_id>
ckpt --workspace /path/to/project diff
ckpt --workspace /path/to/project ls
ckpt workspaces

Configuration

All options below are read through the fabricatio configuration chain (see the Configuration Guide). Set them under the [ext.checkpoint] table in fabricatio.toml, equivalently under [tool.fabricatio.ext.checkpoint] in pyproject.toml, or via FABRICATIO_EXT__CHECKPOINT__<FIELD_UPPER> environment variables.

[ext.checkpoint]
checkpoint_dir = "~/.fabricatio-checkpoint"
cache_size = 100
Option Type Default Description
checkpoint_dir Path ~/.fabricatio-checkpoint Directory to store checkpoints. Aka the shadow repositories.
cache_size int 100 Maximum number of checkpoints to keep in memory.

Access at runtime: from fabricatio_checkpoint.config import checkpoint_config.

Dependencies

  • fabricatio-core — core interfaces and config system

No additional Python dependencies required for basic use. The optional [cli] extra adds typer.

License

MIT — see LICENSE

Metadata

Release files for fabricatio-checkpoint 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for fabricatio-checkpoint 0.3.7
File Actions
fabricatio_checkpoint-0.3.7-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for fabricatio_checkpoint-0.3.7-cp314-cp314-win_amd64.whl
fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details for fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_x86_64.whl
fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_aarch64.whl
fabricatio_checkpoint-0.3.7-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp314-cp314-macosx_11_0_arm64.whl
fabricatio_checkpoint-0.3.7-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fabricatio_checkpoint-0.3.7-cp313-cp313-win_amd64.whl
fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl
fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_aarch64.whl
fabricatio_checkpoint-0.3.7-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp313-cp313-macosx_11_0_arm64.whl
fabricatio_checkpoint-0.3.7-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fabricatio_checkpoint-0.3.7-cp312-cp312-win_amd64.whl
fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl
fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_aarch64.whl
fabricatio_checkpoint-0.3.7-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for fabricatio_checkpoint-0.3.7-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 27.3 MB

Release files / fabricatio_checkpoint-0.3.7-cp314-cp314-win_amd64.whl

Download URL fabricatio_checkpoint-0.3.7-cp314-cp314-win_amd64.whl
Size 2.4 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
4c11e978ddcb30b522d2bd18c7f7ed967e2497da6980f6643b51041b34506c97
BLAKE2b-256 checksum
How to use checksums
ce9ed520a4d9f22273777ab1fccbe42ee44188ca022129d85d098845681690e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_x86_64.whl
Size 2.4 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5312bea906412535e0973dbec67682fb4ee3d8e29d3d61eb7fc6db1cf9b9f876
BLAKE2b-256 checksum
How to use checksums
e5f76721bb84101dfebf02719a5f90b8ce3fbd42d10c245acd4b106510287dca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_aarch64.whl

Download URL fabricatio_checkpoint-0.3.7-cp314-cp314-manylinux_2_34_aarch64.whl
Size 2.2 MB
Tags CPython 3.14 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
3d72c20585b45320858a477a68f85b4b8d2b3a92bda4105ba1c3df47dbb6e6d6
BLAKE2b-256 checksum
How to use checksums
09b040d74a593819d04e2484ffa86199f3ad3e2597fe91c122e8c16ca2f7a537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp314-cp314-macosx_11_0_arm64.whl

Download URL fabricatio_checkpoint-0.3.7-cp314-cp314-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e926f8bd7341cb81701031e02d21e81d403cb1584bdc6ef52cc09e491022b35c
BLAKE2b-256 checksum
How to use checksums
beeb574575a9eb318f0d7e1449e1175368fc952e54bad3d1489d1404d2674196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp313-cp313-win_amd64.whl

Download URL fabricatio_checkpoint-0.3.7-cp313-cp313-win_amd64.whl
Size 2.4 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
d2571e60c1a1f0a37ecc6e7a732d21f0153a031a3f85ea7a506a63e919349165
BLAKE2b-256 checksum
How to use checksums
3f1a454bdf83698e4ef09e07e40c61bb77b8b22ad13f442f110f92fbe275c391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_x86_64.whl
Size 2.4 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
7606aeb695de2d48a357f4e431f5fe463d7c3ce25bb620b19c41b6285844437b
BLAKE2b-256 checksum
How to use checksums
d548eb0dba7901618b69b70b65d1d9dd3d2fff22a97b277fc8f07f94617e109e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_aarch64.whl

Download URL fabricatio_checkpoint-0.3.7-cp313-cp313-manylinux_2_34_aarch64.whl
Size 2.2 MB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
6c3e4aff13b46e85df7d764ad186123507b93027f724d0f24d26ec40602827d4
BLAKE2b-256 checksum
How to use checksums
da3edbf728f2ad42b7486d85e28dfd0a3279d6b7db2fec8522d42749390107e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp313-cp313-macosx_11_0_arm64.whl

Download URL fabricatio_checkpoint-0.3.7-cp313-cp313-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e0856eddea9617765a273d30b6f82b767c86b86a5dfe9756265e037298b903b7
BLAKE2b-256 checksum
How to use checksums
6a0b92874b6adb9d4cddd28381a9904aba184ecd81966e3163c4bcea19f1dee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp312-cp312-win_amd64.whl

Download URL fabricatio_checkpoint-0.3.7-cp312-cp312-win_amd64.whl
Size 2.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6706d64f656bfe6d717d1e63bd60564a9ad1904193c275eaf02f6da9b62e38e3
BLAKE2b-256 checksum
How to use checksums
5e5647bf852cf6ac84c20648dcfbcb5e1d94d6df6f2c9ff1abb25c0e66902e7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_x86_64.whl
Size 2.4 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
d090da9994e6ce20afcb187764a907c0402c9f652d2a76e8265c6cf72bd0689d
BLAKE2b-256 checksum
How to use checksums
93438b1befd9a4987041af5578f1ff955d8d42742dd5d38cfc40fbd8347bef4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL fabricatio_checkpoint-0.3.7-cp312-cp312-manylinux_2_34_aarch64.whl
Size 2.2 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
be7faceebc80b666ac0ee8a79df0d899308c9f5d6bd53cbdd12213f09fa1d074
BLAKE2b-256 checksum
How to use checksums
beb1d89520c3460417a3e1bd0cb27eedf778de2178d650594a9d95500c8c60e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_checkpoint-0.3.7-cp312-cp312-macosx_11_0_arm64.whl

Download URL fabricatio_checkpoint-0.3.7-cp312-cp312-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
441ad65b2d6faa989ef17c335d1383d06013ff4f79555d9a4b41a72dbc9fc5bb
BLAKE2b-256 checksum
How to use checksums
f9e5e9bc498b3fc858b6bcf13780e3d8015ff8c992ffae14f7d616ea74f6c2a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fabricatio-checkpoint 0.3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page