Skip to main content

statepatch

Immer-style ops over a plain JSON tree.

observable(initial) wraps one value: .value reads it, every mutation applies to the tree and emits the matching op (replace / add / remove) to subscribers. Observables compose: an observable stored inside another mounts its op stream at that path.

from statepatch import observable

state = observable({"runs": []})
state.subscribe(print)

run = observable({"runId": "r1", "queue": []})
state["runs"].append(run)          # add op at ["runs", 0]
run["queue"].append({"id": "q1"})  # forwarded as add at ["runs", 0, "queue", 0]
state["runs"].pop(0)               # remove op; run is detached and reusable

Metadata

Release files for statepatch 0.1.1

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

Source distribution (sdist)

Source distribution for statepatch 0.1.1
File Size Uploaded
statepatch-0.1.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for statepatch 0.1.1
File Interpreter ABI Platform
statepatch-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / statepatch-0.1.1.tar.gz

Download URL statepatch-0.1.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f5ebdf8544e9f551d985680e7f4910b0a6ca71f6fe21e8843d5ae4434462d521
BLAKE2b-256 checksum
How to use checksums
7c22e4bb965e8c5469d947306d06c66670328b0e6bfbdc936ed328310103ded5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 24, 2026.

Transparency log

Release files / statepatch-0.1.1-py3-none-any.whl

Download URL statepatch-0.1.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a806bf8cd0f4f9f59a1c2d0a57209b25be49c44af70007e1fd282a82ed942f22
BLAKE2b-256 checksum
How to use checksums
3df81826926b01c53e4c01e748bfcffdd8a4e095505b585a328ebd97d94e380a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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