Installing Stringalign#
Installing from PyPI#
Stringalign is hosted on PyPI and can be installed with pip:
pip install stringalign
Alternatively, if you use a project manager like PDM, uv or poetry:
[pdm|uv|poetry] add stringalign
Installing from source#
If you want the latest development version of Stringalign, then you need to compile it yourself. To do so, you first need to install Rust (e.g. with rustup), as Stringalign contains a small extension module for performance critical functions.
Once you’ve installed Rust, you can build and install Stringalign with any tool that supports local installations. We use PDM for development, so you can e.g. run
git clone https://github.com/yngvem/stringalign.git
cd stringalign
pdm install
or build wheels that you install in other environments
git clone https://github.com/yngvem/stringalign.git
cd stringalign
pdm build