Skip to main content

trrack-widget

PyPI

Track the state of anywidget widgets.

  • Persisted saves a widget's state and restores it the next time it loads.
  • Trrackable records every change as a history you can undo, redo, and branch.

Install

uv add trrack-widget          # or: pip install trrack-widget

Use

from trrack_widget import JsonFileStore, Persisted, Trrackable

Persisted(counter, store=JsonFileStore("state.json"))   # comes back as you left it
Trrackable(counter)                                      # undo, redo, and branch

The store decides where the state lives. JsonFileStore uses a file. Write your own with two methods, save and load, to use a database or the URL.

Docs

The guide, the examples, and the API reference are at kirangadhave.github.io/trrackpy.

Requirements

  • The wrapped widget must be an anywidget.
  • marimo 0.23.14 or later, or Jupyter with anywidget 0.11 or later.

License

BSD-3-Clause. Part of the trrackpy monorepo.

Metadata

Release files for trrack-widget 0.1.0

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

Source distribution (sdist)

Source distribution for trrack-widget 0.1.0
File Size Uploaded Provenance Actions
trrack_widget-0.1.0.tar.gz 20.2 kB With provenance Details for trrack_widget-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trrack-widget 0.1.0
File Interpreter ABI Platform Actions
trrack_widget-0.1.0-py3-none-any.whl Python 3 none any Details for trrack_widget-0.1.0-py3-none-any.whl

Total release size: 43.2 kB

Release files / trrack_widget-0.1.0.tar.gz

Download URL trrack_widget-0.1.0.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
89a82e9e92a92596cc45568e4a683acf8250397fb03dad7b4874e9b4053c510a
BLAKE2b-256 checksum
How to use checksums
20ee347d80da85f205fcfd6031de6ca2a43756c3ddc6bb6c163c3958b36a94db
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 log

Release files / trrack_widget-0.1.0-py3-none-any.whl

Download URL trrack_widget-0.1.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82f4920a378239568cdfbaa3a715aec42b332d0f5fb27a54292d3863e870e939
BLAKE2b-256 checksum
How to use checksums
5f0d797cefb65c38d3d7062d5b899ae9d174e3fe9750f2108a3b9261e3db59fd
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 log

Security for trrack-widget 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.

Select from 2 files

Attestation for trrack_widget-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 log

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