trrack
Branching history for Python state. ProvenanceGraph keeps every state you
record as a node in a tree, so you can undo, redo, jump to any node, and branch
off an earlier one.
Pure Python, with no UI dependencies. For widgets in notebooks, see
trrack-widget.
Install
uv add trrack # or: pip install trrack
Use
from trrack import ProvenanceGraph
g = ProvenanceGraph({"count": 0}, now="t0")
g.commit({"count": 1}, now="t1")
g.commit({"count": 2}, now="t2")
g.undo() # back to {"count": 1}
g.redo() # forward to {"count": 2}
# Go back, then commit a different state. This starts a new branch.
g.go_to(g.root.id)
g.commit({"count": 99}, now="t3")
g.current.state # {"count": 99}
The graph never reads the clock. You pass each timestamp as now, so the same
calls always build the same graph.
g.to_dict() gives a JSON-compatible dict, and
ProvenanceGraph.from_dict(data) rebuilds the graph.
Docs
The API reference and the guide to stores are at kirangadhave.github.io/trrackpy.
License
BSD-3-Clause. Part of the trrackpy monorepo.
Metadata
Release files for trrack 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trrack-0.1.0.tar.gz | 6.6 kB | With provenance | Details for trrack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trrack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for trrack-0.1.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / trrack-0.1.0.tar.gz
| Download URL | trrack-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74801868d3a7dbeecef623ca47eb62569e3513a7cc084f0a653e2cfcaa82b16d
|
|
BLAKE2b-256 checksum How to use checksums |
9cf6a121e8288951df037c8d05fae39a5a7ed420221a4013515abb4dd02fa5ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / trrack-0.1.0-py3-none-any.whl
| Download URL | trrack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76c16ce463a7a3f807890de791639cc796ccc60ad13fa93eb71300e91dc47c40
|
|
BLAKE2b-256 checksum How to use checksums |
1749ecd4361dd1c75996dd68a401af6e8941df48b811968cd428d3099ed08b45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for trrack 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for trrack-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA 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.