🐍

Rust製のPythonライブラリ一覧

に公開

はじめに

Rustは、高いパフォーマンスと安全性、並列性を追求したシステムプログラミング言語であり、内部処理をRustで実装したPythonライブラリが増加している。
uvやruff、pydantic、polarsなどのライブラリは、Rustの性能を活かしており多くの開発者に支持されている。
しかし各ライブラリの概要やサンプルコードはあっても、Rust製のPythonライブラリを網羅的にまとめた記事は見当たらない。そこで、一覧にまとめてみた。

Rust製のPythonライブラリ一覧

パッケージ管理、コード解析、型定義

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
uv パッケージ管理 0.7.x v0.0.5 2024/02/16 An extremely fast Python package and project manager, written in Rust.
Pixi パッケージ管理
(conda版uv)
0.46.x v0.0.1 2023/06/09 Entirely written in Rust and built on top of the rattler library.
Ruff コード解析 0.11.x v0.0.13 2022/08/28 An extremely fast Python linter and code formatter, written in Rust.
Pydantic 型定義 2.11.x v2.0.0 2023/07/01
v1.0.0 2019/10/23
v0.0.1 2017/05/04
Pydantic's core validation logic is written in Rust. As a result, Pydantic is among the fastest data validation libraries for Python.
css-inline CSSインライン化 0.14.x v0.1.0 2020/06/25 (css-inline/srcディレクトリがRustで実装された高速なコアライブラリ)

データ処理

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
Polars DataFrame 1.29.x v1.0.0 2024/07/01
v0.0.1 2021/03/15
Its multi-threaded query engine is written in Rust and designed for effective parallelism.
LanceDB ベクトルデータベース 0.22.x v0.0.1 2023/03/28 LanceDB's core is written in Rust and is built using Lance, an open-source columnar format designed for performant ML workloads.
DataFusion in Python Apache Arrow DataFusionへのPythonバインディング 46.0.x v0.7.0 2022/11/27 DataFusion is an extensible query engine written in Rust that uses Apache Arrow as its in-memory format.
Deltalake-python Delta Lakeプロトコル 0.25.x v0.1.0 2020/11/01 deltalake is a Rust-based re-implementation of the DeltaLake protocol originally developed at DataBricks.
ConnectorX データベースからDataFrameへの高速データ読み込み 0.4.x v0.1.0 2021/04/24 ConnectorX is written in Rust and follows "zero-copy" principle.
Sail 高速な分散データ処理 0.2.x v0.1.0 2024/08/30 Written in Rust, Sail leverages the language’s performance and safety features for robust and efficient data processing.
orjson JSONライブラリ 3.10.x v3.0.0 2020/05/01
v2.0.0 2019/01/29
v1.0.0 2018/11/24
(srcディレクトリがRustで実装された高速なコアライブラリ)
ormsgpack MessagePackライブラリ 1.9.x v1.0.0 2021/08/31
v0.1.0 2021/06/08
Msgpack serialization/deserialization library for Python, written in Rust using PyO3. Reboot of orjson.
fastbloom-rs ブルームフィルタ 0.5.x v0.1.3 2022/05/29 A fast bloom filter / counting bloom filter implemented by Rust for Rust and Python

Webフレームワーク、ネットワーク

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
Granian HTTPサーバー 2.2.x v2.0.0 2025/03/03
v1.0.0 2024/01/22
v0.1.0 2022/11/02
A Rust HTTP server for Python applications built on top of the Hyper crate.
rnet TLSフィンガープリント付き非同期HTTPクライアント 2.2.x v2.0.0 2025/03/18
v1.0.0 2025/02/23
v0.2.0 2025/02/14
Built on rquest (An ergonomic Rust HTTP Client with TLS fingerprint) for exceptional speed and a clean, intuitive API.
PRIMP HTTPクライアント (srcディレクトリがRustで実装された高速なコアライブラリ)
Robyn 非同期Webフレームワーク 0.66.x v0.1.0 2021/06/17 Robyn is a High-Performance, Community-Driven, and Innovator Friendly Web Framework with a Rust runtime.

暗号化、セキュリティ

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
cryptography 暗号化 44.0.x v35.0.0 2021/09/30
v3.0 2020/07/21
v2.0 2017/07/18
v1.0 2015/08/12
v0.1 2014/01/09
We want cryptography to be as secure as possible while retaining the advantages of OpenSSL, so we’ve chosen to rewrite non-cryptographic operations (such as ASN.1 parsing) in a high performance memory safe language: Rust.
blake3-py blake3ハッシュ関数のPythonバインディング 1.0.x v1.0.0 2024/11/30
v0.1.0 2020/02/29
Python bindings for the official Rust implementation of BLAKE3, based on PyO3.
Johnny can encrypt 暗号化 0.16.x v0.1.0 2020/07/11 Johnnycanencrypt aka jce is a Python module written in Rust to do basic encryption and decryption, and detached signing operations.

機械学習、AI

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
tokenizers トークナイザー 0.21.x v0.0.1 2019/11/02 Extremely fast (both training and tokenization), thanks to the Rust implementation.
tiktoken トークナイザー 0.9.x v0.1.1 2022/12/15 (srcディレクトリがRustで実装された高速なコアライブラリ)
Forust 勾配ブースティング 0.4.x v0.1.0 2022/06/08 All of the algorithm code is written in Rust, with a python wrapper.
River オンライン機械学習 0.22.x v0.7.0 2021/04/17 light-river implements fast algorithms in rust.

The following statistics are now implemented in Rust: Quantile, EWMean, EWVar, IQR, Kurtosis, PeaktoPeak, Skew, RollingQuantile, RollingIQR

その他

ライブラリ 概要 2025年5月時点バージョン 主なリリース履歴 Rust製の記載
FastUUID UUID 0.12.x v0.1.0 2019/06/06 FastUUID is a library which provides CPython bindings to Rust's UUID library.
html2text_rs HTMLをテキスト/Markdownに変換 0.2.x v0.1.0 2024/07/29 Python binding to the rust rust-html2text library.
htmlpyever 高速HTML解析 0.1.x v0.1.0 2017/03/04 (html5everはRust製のHTMLパーサー)
jsonschema-rs JSONスキーマバリデーター 0.30.x v0.1.0 2020/06/10 A high-performance JSON Schema validator for Rust
pycrdt 共同リアルタイム編集 0.12.x v0.1.0 2023/09/20 (srcディレクトリがRustで実装された高速なコアライブラリ)
Rateslib 固定収入分析 1.8.x v1.0.0 2024/02/02
v0.1.0 2023/04/25
rateslib-rs is the lower level codebase written in Rust, with PyO3 bindings, providing performant solutions for some of the Python classes and methods.
Bed-Reader PLINK BED形式ファイルの読み書き 1.0.x v1.0.0 2023/11/13
v0.1.0 2020/09/07
Fast multi-threaded Rust engine.
tzfpy 経度/緯度からタイムゾーン名への高速変換 1.0.x v1.0.0 2025/03/25
v0.6.0 2022/08/01
tzfpy was originally written in Go named tzf and use CGO compiled to .so to be used by Python. Since v0.11.0 it's rewritten in Rust built on PyO3 and tzf-rs, a tzf's Rust port.
MOCPy 上空管理データ構造 0.17.x v0.1.0 2015/05/28 (srcディレクトリがRustで実装された高速なコアライブラリ)
utiles メルカトル図法 0.7.x v0.0.0 2023/05/10 utiles started off as a python port of mapbox's web-mercator utils python-library mercantile written in rust.
FeOs 熱力学モデル 0.8.x v0.1.0 2022/01/14 The FeOs package provides Rust implementations of different equation of state and Helmholtz energy functional models and corresponding Python bindings.
haem 生物情報科学 (srcディレクトリがRustで実装された高速なコアライブラリ)

Rust製のJavaScript/TypeScriptライブラリ一覧

Rust製のJavaScript/TypeScriptライブラリは、以下のリンクにまとめている。

https://scrapbox.io/uki00a/Rust製のフロントエンドエコシステム

おわりに

他にもここに記載されていないライブラリがあれば、ぜひ教えてほしい。

Discussion