Installation
calimero-client-py is a Python client SDK backed by a native Rust core, built
with PyO3 and maturin. Two
importable modules are installed:
calimero_client_py— the compiled extension: the classes and functions documented in the API reference.calimero— a thin Python package that re-exports the same names and provides thecalimero-client-pyCLI.
Requirements
Section titled “Requirements”- Python 3.9 or newer.
- A Rust toolchain (stable) and a working C compiler.
Install from PyPI
Section titled “Install from PyPI”pip install calimero-client-pypipx install calimero-client-pyThe build can take a few minutes the first time while Cargo compiles the Rust dependencies.
Verify
Section titled “Verify”python -c "import calimero_client_py; print(calimero_client_py.VERSION)"That prints the installed version. The CLI is also on your PATH:
calimero-client-py --versionInstall from source
Section titled “Install from source”Clone the repository and build with maturin. maturin develop compiles the
extension and installs it into the active virtual environment in one step.
-
Clone and enter the repository:
Terminal window git clone https://github.com/calimero-network/calimero-client-py.gitcd calimero-client-py -
Install maturin and build in development mode:
Terminal window pip install maturinmaturin develop --release -
Confirm the import works:
Terminal window python -c "import calimero_client_py; print('ok', calimero_client_py.VERSION)"
Next steps
Section titled “Next steps”QuickstartConnect to a node and make your first call.
Connecting to a nodeConnections, the node_name parameter, and creating a client.