Installation & Setup
Prerequisites
- Python: 3.12+ (
requires-python = ">=3.12"inpyproject.toml) - Rust Toolchain: stable
rustc+cargo(automatically invoked when building via UV / Maturin) - Package Manager: Recommended
uv(fastest) orpip - Runtime dependency:
pyarrow(installed automatically)
1. Install Directly from GitHub via UV
Since basaltic-red is hosted on GitHub with a native Maturin PEP 517 build backend, you can install or add it directly with UV in a single command. UV will automatically fetch the repo, compile the Rust core, and install the package:
2. Install from Local Source (Development Mode)
If you have cloned the repository locally:
-
Clone repository:
-
Set up virtual environment with UV:
-
Install dependencies and compile:
3. Verifying Installation
Run a quick Python command to verify that the PyO3 bindings and Rust SIMD engine are ready:
import basaltic_red as br
print("Available Modules:", [m for m in dir(br) if not m.startswith("_")])
Output: