Skip to main content
Pre-release

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

Calimero Client Python Library

The Python client for Calimero 1.0, backed by core's Rust calimero-client via PyO3. Verify a node's attestation, sign in with a passkey or API key, deploy apps, call and view their methods, read their events, administer organizations and teams, and run the operator's Ops API — all from synchronous Python.

Up to 0.9.0 this package also shipped a client for v1's peer-to-peer node (create_connection, create_client, v1's Client, sign_warrant, ...). Calimero 1.0 deleted that node and this package deleted its client (1.0.0-rc.1 is a breaking release); the changelog says what replaces each name.

Documentation

Full documentation is published at https://calimero-network.github.io/calimero-client-py/ — installation, quickstart, concepts, and the complete Python API reference. The source lives under docs/.

Installation

pip install --pre calimero-client-py      # 1.0.0rc2, until 1.0.0 is out

PyPI carries a prebuilt abi3 wheel (any CPython 3.9+) for Linux x86_64 and aarch64 (manylinux2014), macOS arm64 and x86_64, and Windows x86_64, so nothing compiles. Elsewhere pip builds the source distribution, which needs a Rust toolchain on PATH (rustup). See the installation guide for details.

Quick start

Client talks to one node of a Calimero 1.0 cluster (merod). Every method blocks until the node answers and returns a plain Python value. Attestation, the sealed channel and passkey handling run in core's Rust calimero-client, so Python applies the same trust check as every other client. Client is the preferred name; CloudClient is the same class, kept for existing imports.

from calimero_client_py import Client, CloudError

client = Client("https://eu1.cloud.calimero.network")  # allow_mock=True for dev clusters
client.use_api_key("cal_...")
r = client.call(app_id, "set", {"key": "a", "value": "1"}, idempotency_key="k1")
print(client.view(app_id, "get", {"key": "a"})["result"])
for e in client.events(app_id, start=0, limit=10, timeout=5):
    print(e["kind"], e["data"])

A cluster by name: Client.connect asks the Calimero Cloud node directory for its nodes, the ones in zone first, and fails over between them. The directory is not trusted: every node is attested under your policy before anything is sent to it.

client = Client.connect("eu-shared-1", tee_profiles=["..."], zone="europe-west4-a")
print(client.node_url, client.node_urls)  # the node in use, and the rest in order

Organizations, teams and invites:

org = client.create_org("Acme")
# What grants access is approved with the acting account's passkey (412 first).
token = client.invite(org, "member", passkey, teams=[], ttl_secs=86400, uses=1)
other.redeem_invite(token)
team = client.create_team(org, "eng", join="invite")      # or join="everyone", parent=...
client.set_team_member(org, team, account_id, passkey, role="readOnly")
app = client.create_app("eng-kv", client.upload_bundle(wasm),
                        {"org": org, "access": {"kind": "team", "team": team}})
client.update_team(org, team, name="engineering", metadata={"colour": "teal"})
client.delete_team(org, team)                               # takes its sub-teams and apps
Area Methods
Session sign_up, sign_in, refresh, sign_out, sign_out_everywhere, use_session, use_api_key, session, me, usage
Devices (passkeys) add_passkey(new, approver), remove_passkey(credential_id, passkey), label_passkey
API keys create_api_key({label, apps, methods, readOnly, allowConfirm, ttlSecs}, passkey), list_api_keys, revoke_api_key
Aliases set_alias, alias, aliases, delete_alias
Packages upload_package, install_package, packages, package, uninstall_package
Apps upload_bundle, create_app, create_app_from_package, list_apps, get_app, delete_app, set_access, set_app_metadata, app_storage, app_abi, upgrade_app, transfer_app, verify_app_cluster
Approvals approve_release, approve_outbound (the owner's passkey)
Upgrade runs upgrade_org, upgrade_run, retry_upgrade_run
Presence publish_presence, presence, presence_stream
Calls call, call_confirmed, view, events
Blobs upload_blob, download_blob, list_blobs, blob_info, delete_blob
Organizations create_org, get_org, delete_org, set_org_metadata, set_member, set_member_metadata, remove_member, set_capabilities, invite, redeem_invite
Teams create_team, get_team, update_team, delete_team, set_team_member, remove_team_member
Ops API (ops token via use_api_key, decisions signed after use_operator_key) ops_status, ops_metrics, ops_register_node, ops_remove_node, ops_set_replicas, ops_backup, ops_quotas, ops_set_quotas, ops_approve_release, ops_approve_outbound, ops_upgrade_app, ops_upgrade_org, ops_packages, ops_upload_package, ops_install_package, ops_uninstall_package
Anything else get, get_text, post, put, delete(path, body=None) on any API path; post_confirmed, delete_confirmed where the node asks for a passkey (412); post_operator_signed, delete_operator_signed where it asks for the operator's signature (428); attestation

SoftPasskey is an in-memory passkey for scripts and tests against development clusters (client.sign_up(SoftPasskey(), "alice"), client.call_confirmed(...)). Errors raise CloudError(message, status, code, details); LoginRequired (401 the client's own refresh did not answer) and WrongNode (421 WRONG_NODE with no other node to move to, given in nodes) are its subclasses. Operators authenticate with the node's ops token, and sign their decisions (nodes, quotas, replica moves, and the releases, outbound approvals and upgrades governance gives them) with the operator's Ed25519 key, whose verify half the nodes were started with (merod --operator-key $(python -c 'from calimero_client_py import Client; print(Client.operator_public_key("<seed hex>"))')):

ops = Client(node_url, tee_profiles=["..."])
ops.use_api_key(ops_token)
ops.use_operator_key(operator_seed_hex)   # answers 428 OPERATOR_SIGNATURE_REQUIRED
print(ops.ops_status()["nodes"])
ops.ops_register_node(4, "https://node4.example/", zone="eu1-b")
ops.ops_set_replicas(app_id, [1, 2, 4])   # sent on to the app group's leader
print(ops.ops_backup(), "snapshots written")

tests/test_cloud_v2.py, tests/test_cloud_v2_api.py and tests/test_cloud_v2_ops.py run against a local 3-node cluster of core 1.0's merod (set MEROD_BINARY and KV_STORE_WASM, or keep a core checkout beside this one).

Development

Build from source with maturin:

pip install maturin
maturin develop --release        # compile the extension into the active venv
python -c "import calimero_client_py; print('ok', calimero_client_py.VERSION)"

Run the tests:

cargo test          # Rust unit tests
pytest              # Python tests

The Rust core depends on calimero-client and calimero-identity from core's claude/proofs-at-apply branch (until core #4791 merges; then master) on github.com/calimero-network/core, so the first build fetches and compiles those too (a network connection is required for the initial build).

Support

License

See LICENSE.

Metadata

Release files for calimero-client-py 1.0.0rc2

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

Source distribution (sdist)

Source distribution for calimero-client-py 1.0.0rc2
File Size Uploaded Provenance Actions
calimero_client_py-1.0.0rc2.tar.gz 83.2 kB With provenance Details for calimero_client_py-1.0.0rc2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for calimero-client-py 1.0.0rc2
File Actions
calimero_client_py-1.0.0rc2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for calimero_client_py-1.0.0rc2-cp39-abi3-win_amd64.whl
calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
calimero_client_py-1.0.0rc2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for calimero_client_py-1.0.0rc2-cp39-abi3-macosx_11_0_arm64.whl
calimero_client_py-1.0.0rc2-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for calimero_client_py-1.0.0rc2-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 21.8 MB

Release files / calimero_client_py-1.0.0rc2.tar.gz

Download URL calimero_client_py-1.0.0rc2.tar.gz
Size 83.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7a80039804b7d38a535482de9a4b8738181a44e271f0f407e7bf803a179609eb
BLAKE2b-256 checksum
How to use checksums
c992ff7307371171fabdb8e24379049bf0b5e895a5a1ab5213b7bf7df7a99fa5
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 Nov 4, 2026.

Transparency log

Release files / calimero_client_py-1.0.0rc2-cp39-abi3-win_amd64.whl

Download URL calimero_client_py-1.0.0rc2-cp39-abi3-win_amd64.whl
Size 4.4 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
03727141629ad14db8531f214096aca753c2ce99165865eeae426c2dede9baca
BLAKE2b-256 checksum
How to use checksums
b53c514fa2e0f3aa3a391457e8d8b1cd61bc38035e2440c465bf6f45ae89a6d3
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 Nov 4, 2026.

Transparency log

Release files / calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c133d8a706c84fc55a654e36dbabb00ea8f720766d201c57f0787955fb2ab0bb
BLAKE2b-256 checksum
How to use checksums
99fc5f926a168a9cd69a64f0c05a62666f4b4f8894074fb36118f203970374e3
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 Nov 4, 2026.

Transparency log

Release files / calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL calimero_client_py-1.0.0rc2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9a70c67cc12661778765916ffd2fa1a9122c800098f7ea2552a3cc9e04fc1637
BLAKE2b-256 checksum
How to use checksums
04000bc3f3452e2b4142e9cedb661994c88bda9ad12e217d7f67712192ab312e
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 Nov 4, 2026.

Transparency log

Release files / calimero_client_py-1.0.0rc2-cp39-abi3-macosx_11_0_arm64.whl

Download URL calimero_client_py-1.0.0rc2-cp39-abi3-macosx_11_0_arm64.whl
Size 4.0 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
641e57761a8bb6cf0342d7a96215a95dac45c0b7db23db59fc37560d8a4b8751
BLAKE2b-256 checksum
How to use checksums
3a31145cc24c46656d610c19bb879c390a97813d0e2cfbc8ee4c3d0f0a12a702
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 Nov 4, 2026.

Transparency log

Release files / calimero_client_py-1.0.0rc2-cp39-abi3-macosx_10_12_x86_64.whl

Download URL calimero_client_py-1.0.0rc2-cp39-abi3-macosx_10_12_x86_64.whl
Size 4.3 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0f53704651ee3a8a1aeb0f94871d6803c9d275331a8eadf795c56305a6966226
BLAKE2b-256 checksum
How to use checksums
0af3c4499ff25a1103518bffaa4025110d8dd330a877481fe4c7a1a785a705c9
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 Nov 4, 2026.

Transparency log

Security for calimero-client-py 1.0.0rc2

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for calimero_client_py-1.0.0rc2.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 4, 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.

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