Skip to content

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 the calimero-client-py CLI.
  • Python 3.9 or newer.
  • A Rust toolchain (stable) and a working C compiler.
Terminal window
pip install calimero-client-py

The build can take a few minutes the first time while Cargo compiles the Rust dependencies.

Terminal window
python -c "import calimero_client_py; print(calimero_client_py.VERSION)"

That prints the installed version. The CLI is also on your PATH:

Terminal window
calimero-client-py --version

Clone the repository and build with maturin. maturin develop compiles the extension and installs it into the active virtual environment in one step.

  1. Clone and enter the repository:

    Terminal window
    git clone https://github.com/calimero-network/calimero-client-py.git
    cd calimero-client-py
  2. Install maturin and build in development mode:

    Terminal window
    pip install maturin
    maturin develop --release
  3. Confirm the import works:

    Terminal window
    python -c "import calimero_client_py; print('ok', calimero_client_py.VERSION)"