Install

While qblaze is written in Rust, we primarily intend it to be used via its Python and C bindings.

For Python, we recommend installing qblaze via the pip package manager (ensure your Python version is ≥3.10):

$ pip install qblaze

Building from source

The source code is available on GitHub.

Prerequisites:

  • Python, version 3.10 or newer, with the ability to build extension modules (C toolchain, headers, etc.). On various Linux distributions this may correspond to python, python3-dev, or python3-devel. On Windows you will need either Visual Studio or Build Tools for Visual Studio.

  • Rust, version 1.82 or newer. Note that the same C toolchain must used by Rust and Python. For example, the official python.org Python distribution for Windows uses the MSVC toolchain, so the Rust target should be x86_64-pc-windows-msvc, not x86_64-pc-windows-gnu.

The setuptools script setup.py takes care of building the Python extension module:

$ pip install .

The C bindings can be built with cargo-c:

$ cargo cinstall