Python · Installation

Installation

6.0.0-rc.1 · cb8d956a

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/stringzilla/python/installation.md' | claude -p "How would this fit my code?"

StringZilla ships on PyPI as one package, carrying the single-string kernels and the batch engines alike:

pip install stringzilla

NumPy is not required, since every engine writes into any writable buffer the caller supplies, including a plain memoryview. It is the convenient way to produce one, though, so most of the examples below reach for it.

Building from source goes through CMake, which scikit-build-core drives, so it needs a C compiler and pulls CMake and Ninja from PyPI when the system has none recent enough. The build probes the compiler for every SIMD kit it can emit and compiles them all, and every call picks among them by its capability mask, as Runtime Dispatch describes. Build parallelism follows CMAKE_BUILD_PARALLEL_LEVEL, which should be lowered in memory-constrained containers. STRINGZILLA_MARCH=native in the environment tunes the build for the machine it runs on, and STRINGZILLA_CUDA_ARCH=all, STRINGZILLA_ROCM_ARCH=all or STRINGZILLA_METAL_ARCH=all adds the CUDA, ROCm or Metal backends of the batch engines.

CMAKE_BUILD_PARALLEL_LEVEL=2 pip install .