Python libraries and tools powered by Rust.
Rust brings performance, safety, and concurrency to Python. This list showcases libraries that leverage Rust to supercharge Python applications.
- Build Tools & Frameworks
- Data Processing
- Development Tools
- Web & Networking
- Machine Learning & AI
- Performance & Caching
- Text Processing & Parsing
- Utilities
- Game Development
- Resources
Tools and frameworks for building Rust-powered Python extensions.
- inline-python - Inline Python code directly in your Rust code.
- maturin - Build and publish Rust-based Python packages with minimal configuration.
- pyo3-async-runtimes - PyO3-based bridges between Python and Rust async runtimes.
- pyo3-file - Helper library for working with Python file-like objects with Rust.
- pyo3-stub-gen - Stub file (*.pyi) generator for PyO3.
- PyO3 - Rust bindings for Python, including tools for creating native Python extension modules.
- rustimport - Import Rust source files directly from Python.
- RustPython - Python Interpreter written in Rust.
- setuptools-rust - Setuptools plugin for building Rust extensions.
High-performance data processing and serialization libraries.
- jiter - Fast iterable JSON parser.
- ormsgpack - Msgpack serialization/deserialization library.
- orjson - Fast, correct JSON library.
- polars - DataFrame library with a Pandas-like API.
- pydantic-core - Core validation logic for Pydantic v2.
- yaml-rs - High-performance YAML v1.2 parser.
Developer tools that enhance Python development workflows.
- huak - Python package manager.
- prek - Fast reimplementation of the pre-commit framework.
- pylyzer - Static code analyzer and language server.
- ruff - Extremely fast Python linter and code formatter.
- rumdl - Markdown linter and formatter.
- rye - Python project management tool.
- ty - Python type checker and language server.
- uv - Python package installer and resolver.
Web servers, networking libraries, and cryptographic tools.
- cryptography - Cryptographic recipes and primitives.
- granian - High-performance ASGI/WSGI server.
- httparse - Wrapper for the httparse HTTP parser.
- nh3 - Binding to Ammonia HTML sanitizer.
- pyreqwest - HTTP client based on reqwest.
- pyrtls - Rustls-based TLS library.
- rloop - AsyncIO event loop.
- rnet - HTTP client with TLS fingerprinting.
- Robyn - Async web framework with a Rust runtime.
Tools for machine learning, NLP, and AI applications.
- chroma - Search and retrieval database for AI applications.
- safetensors - Safe and fast tensor serialization format.
- tokenizers - Fast tokenizers for NLP pipelines.
High-performance caching and data structure libraries.
- cachebox - Memoizing and caching library.
- fastbloom - Bloom filter implementation.
- moka-py - High performance caching library.
- rbloom - Bloom filter library.
Libraries for text processing, parsing, and manipulation.
- Python-Regex - Port of the Rust regex library.
- pyromark - Markdown parser.
- regex-rs - Bindings for the regex crate.
- tantivy-py - Bindings for Tantivy full-text search engine.
Miscellaneous utility libraries.
- geohashr - Geohashing library.
- hexora - Static analysis of malicious code.
- jsrun - JavaScript runtime powered by V8.
- PyDomainExtractor - Domain extraction library.
- pythonize - Serialization library for Rust types.
- result - Rust-like Result type.
- rtoml - TOML library.
- ryaml - YAML library.
- tonio - Multi-threaded async runtime.
- uuid-utils - Bindings to Rust UUID.
- whenever - Modern datetime library.
- zensical - Static site generator.
Game engines and frameworks.
- pyxel - Retro game engine.
- Calling Rust from Python - Tutorial series on Rust-Python integration.
- PyO3 User Guide - Comprehensive guide to building Python extensions with Rust.
- Speed Up Your Python with Rust - Guide to optimizing Python with Rust.
- Pydantic V2 Plan - How Rust powers Pydantic's performance improvements.
- Ruff: One Tool to Rule Them All - The story behind building a fast Python linter in Rust.
- Why Polars uses Rust - Insights into choosing Rust for data processing.
Contributions are welcome! Please read the contribution guidelines first.