stratigraph-sync
Python client for @stratigraph/sync — real-time multi-user editing powered by Yjs CRDTs.
Connects to the sync-sidecar Node.js binary over stdio JSON-RPC. Requires Node.js to be installed.
Quick Start
from stratigraph_sync import SyncClient, InitConfig
client = SyncClient()
snapshot = client.init(InitConfig(room_id="trench-5-west"))
print(snapshot.data) # {"contexts": {}, "observations": {}, ...}
# Register event handlers
def on_change(msg):
print(f"Remote change: {msg}")
client.on("remote_patch", on_change)
# Read and write data
client.add("contexts", {"id": "ctx-1", "type": "fill", "description": "Clay layer"})
client.patch("contexts", "ctx-1", {"description": "Sandy clay"})
all_contexts = client.query("contexts")
single = client.query("contexts", "ctx-1")
full = client.snapshot()
client.leave()
client.close()
Events
| Event | Payload | Description |
|---|---|---|
remote_patch |
{collection, id, fields, by} |
Remote document update |
remote_delete |
{collection, id, by} |
Remote document deletion |
remote_add |
{collection, document, by} |
Remote document addition |
awareness |
{users: [...]} |
User presence update |
sync_status |
{state, pending} |
Connection status change |
Metadata
Release files for strgraph 1.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 | |
|---|---|---|---|---|
| strgraph-1.1.0.tar.gz | 4.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strgraph-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / strgraph-1.1.0.tar.gz
| Download URL | strgraph-1.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7714b4ae4b990a2a7de91685893d60e680a27f8d612d687ffcd0e0eb1e16b80b
|
|
BLAKE2b-256 checksum How to use checksums |
0b23d25af8a3b3832a26cbfcf546bd508560b8a3c3a0f57dd0de42e2b3cec4ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency logRelease files / strgraph-1.1.0-py3-none-any.whl
| Download URL | strgraph-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4f6b8e4b79aa9a0291fd8cf81fbbc404c034c70d1974e91dcd9a8ddc00921dd
|
|
BLAKE2b-256 checksum How to use checksums |
3874a5a245671bfac22e2b938d7678d18ac1fc717160dbb85ba62cca4d777818
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 24, 2026.
Transparency logSecurity for strgraph 1.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for strgraph-1.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 Jun 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.