Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ZeroLock Python SDK

Python client SDK for ZeroLock - concurrency-correctness substrate for multi-agent AI systems.

Installation

pip install --pre zerolock-sdk     # pre-release (beta)

Usage

Async Client

from zerolock_sdk import ZeroLockClient, CreateShardOptions

async with ZeroLockClient(gateway="http://localhost:8080") as client:
    # Create a shard
    await client.create_shard("my-shard", CreateShardOptions(type="decision"))

    # Read a shard
    shard = await client.get_shard("my-shard")
    print(f"Value: {shard.value}, Version: {shard.version}")

    # Commit a new value
    result = await client.commit_shard("my-shard", "new-value", shard.version)
    print(f"New version: {result.version}")

Sync Client

from zerolock_sdk import ZeroLockSyncClient, CreateShardOptions

with ZeroLockSyncClient(gateway="http://localhost:8080") as client:
    shard = client.get_shard("my-shard")
    client.commit_shard("my-shard", "new-value", shard.version)

Error Handling

from zerolock_sdk import StaleCommitError, ShardNotFoundError

try:
    await client.commit_shard("my-shard", "value", expected_version)
except StaleCommitError as e:
    print(f"Conflict! Shard {e.shard_id} is now version {e.current_version}")
except ShardNotFoundError as e:
    print(f"Shard {e.shard_id} not found")

Metadata

Release files for zerolock-sdk 0.1.0b1

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

Source distribution (sdist)

Source distribution for zerolock-sdk 0.1.0b1
File Size Uploaded Provenance
zerolock_sdk-0.1.0b1.tar.gz 23.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for zerolock-sdk 0.1.0b1
File Interpreter ABI Platform
zerolock_sdk-0.1.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 56.7 kB

Release files / zerolock_sdk-0.1.0b1.tar.gz

Download URL zerolock_sdk-0.1.0b1.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1913e503ec75ddfd5db901a14918e2d694e145a0819cfa89e71e43866a61c977
BLAKE2b-256 checksum
How to use checksums
5c4f4abfe1453cf33ee37a9d5b9d38f7c7fa68a6bf4f0ffbc71df0e1e1238f81
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 Oct 12, 2026.

Transparency log

Release files / zerolock_sdk-0.1.0b1-py3-none-any.whl

Download URL zerolock_sdk-0.1.0b1-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2668aefd79fd1b548b27991627966f3c4c6121a0984a43b3c6c0f771bbbe034e
BLAKE2b-256 checksum
How to use checksums
89a5377f9f647b5c6f650b42c1d741a33ba048bd4c78958fea52b0587fd31f9a
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 Oct 12, 2026.

Transparency log

Security for zerolock-sdk 0.1.0b1

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.

Select from 2 files

Attestation for zerolock_sdk-0.1.0b1.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 Oct 12, 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.

Release history Release notifications | RSS feed

This release
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