Skip to content

python-developer-tooling-handbook/python-rust-extension-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Example Python library with a Rust extension using maturin, PyO3, and uv. Companion to pydevtools.com tutorial.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors