Python SDK: Installation
Installation
Section titled “Installation”From PyPI
Section titled “From PyPI”The package ships as a prebuilt wheel for common platforms (Linux x86_64, macOS arm64/x86_64). The wheel contains a native extension compiled from Rust via PyO3 — no Rust toolchain is needed for installation.
In a Virtual Environment
Section titled “In a Virtual Environment”With Poetry
Section titled “With Poetry”With uv
Section titled “With uv”Building from Source
Section titled “Building from Source”If no prebuilt wheel is available for your platform, or you want to build from the monorepo source:
Prerequisites
Section titled “Prerequisites”- Python 3.9+
- Rust 1.75+ (
rustuprecommended) protoc(Protobuf compiler)maturin(Python-Rust build tool)
Install maturin
Section titled “Install maturin”Build and install
Section titled “Build and install”From the packages/sdk-python directory:
The maturin develop command compiles the Rust code and installs the resulting native extension into your active Python environment.
Project Structure
Section titled “Project Structure”The Python SDK is a thin binding layer. The lib.rs file:
- Imports
aires_sdk::Aires(the Rust core) - Exposes
init(),trace(),debug(),info(),warn(),error(),fatal(), andmetric()as Python functions - Uses a
static OnceLock<Aires>for the global instance
Verify Installation
Section titled “Verify Installation”Platform Support
Section titled “Platform Support”| Platform | Architecture | Status |
|---|---|---|
| Linux | x86_64 | Prebuilt wheel |
| Linux | aarch64 | Prebuilt wheel |
| macOS | arm64 (Apple Silicon) | Prebuilt wheel |
| macOS | x86_64 (Intel) | Prebuilt wheel |
| Windows | x86_64 | Build from source |
Next Steps
Section titled “Next Steps”- Usage — Logging, metrics, and all SDK functions