Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 789 Bytes

File metadata and controls

23 lines (15 loc) · 789 Bytes

Python Rust Extension Example

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.

Prerequisites

Getting Started

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'))"

License

MIT