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.
- cpython - Experimental Rust-for-CPython branch focused on bringing Rust into CPython internals.
- 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.
- delta-rs - Native Rust library for Delta Lake with Python bindings.
- jiter - Fast iterable JSON parser.
- ormsgpack - MessagePack serialization library for Python written in Rust.
- orjson - Fast, correct JSON library.
- polars - DataFrame library with a Pandas-like API.
- pydantic-core - Core validation logic for Pydantic v2.
- rustworkx - High-performance Python graph library implemented in Rust.
- 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.
- BustAPI - High-performance Python web framework.
- compio-py - AsyncIO event loop using Rust compio.
- cryptography - Cryptographic recipes and primitives.
- django-bolt - Rust-powered API framework for Django.
- granian - High-performance ASGI/WSGI server.
- httparse - Wrapper for the httparse HTTP parser.
- leviathan - Lightning-fast event loop for Python asyncio.
- 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.
- boxlite - Local-first sandbox for AI agents.
- chroma - Search and retrieval database for AI applications.
- monty - Minimal secure Python interpreter for AI workloads.
- 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.
- comrak - Python bindings for Comrak CommonMark/GFM parser.
- 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.
- imgrs - High-performance image processing library for Python powered by Rust.
- oxyde - Type-safe async ORM with a high-performance Rust core.
- jsrun - JavaScript runtime powered by V8.
- magic-rs - Dependency-free file type detection backed by Rust.
- PyDomainExtractor - Domain extraction library.
- pythonize - Serialization library for Rust types.
- ratatui-py - Python bindings for Ratatui (Rust TUI) via FFI.
- result - Rust-like Result type.
- rtoml - TOML library.
- ryaml - YAML library.
- tonio - Multi-threaded async runtime.
- ulid-rs-py - Fast ULID implementation for Python.
- 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.