A Python library with string utility functions implemented in Rust, using maturin and PyO3.
This is the companion repository for the Build a Python library with a Rust extension tutorial on the Python Developer Tooling Handbook.
git clone https://github.com/python-developer-tooling-handbook/python-rust-extension-example.git
cd python-rust-extension-example
uv sync
uv run python -c "from string_utils import word_count; print(word_count('hello world'))"MIT