betterproto-rust-codec
Fast conversion between betterproto messages and Protobuf wire format.
What it is and what it does
betterproto-rust-codec is a performance-focused extension for the betterproto library, written in Rust to accelerate the serialization and deserialization of Protocol Buffer messages. It exposes functions that convert betterproto message objects to and from the Protobuf wire format much faster than the original pure-Python implementation.
The package is distributed as precompiled wheels for multiple platforms and CPU architectures, making installation straightforward on most systems. It has no runtime dependencies and integrates directly with betterproto, so you use it by importing its encode and decode functions and passing them your betterproto message instances. The project is dormant but has no known security vulnerabilities.
Use it for:
- Speed up serialization in high-throughput gRPC services that use betterproto for message definitions.
- Reduce latency in microservices that frequently encode/decode Protocol Buffer messages.
- Improve performance of data pipelines that process large volumes of protobuf-serialized records.
- Accelerate message conversion in real-time systems where betterproto is the chosen message framework.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides fast Rust-based conversion between betterproto messages and Protobuf wire format, replacing the slower native Python implementation.
Yes, if you already use betterproto and need faster serialization. The permissive MIT license, zero runtime dependencies, and broad platform support make it low-risk. Install friction is moderate due to compiled wheels, but prebuilt binaries cover common platforms. Dormant maintenance is a minor concern for a stable, narrow-scope library with no known vulnerabilities.
Install
betterproto-rust-codec on PyPI
pip
pip install betterproto-rust-codecuv
uv add betterproto-rust-codecpoetry
poetry add betterproto-rust-codecInstalling betterproto-rust-codec
Before you install
Medium install friction due to compiled Rust wheels; prebuilt binaries are available for common platforms (x86_64, ARM, PowerPC, s390x) and Python 3.7+, but less common architectures may require compilation.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install betterproto-rust-codec
from betterproto_rust_codec import encode_message, decode_message
# Use with betterproto message instances
Requires Python 3.7 or later; relies on betterproto being installed separately as a peer dependency.
Verify before relying
- Whether betterproto must be installed separately or is automatically pulled in as a dependency.
- Specific performance improvement metrics compared to the native Python betterproto codec.
- Whether the package is actively maintained or seeking new maintainers given dormant status.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 853 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 199,075/month — #9,717 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: betterproto_rust_codec-0.1.1-cp37-abi3-macosx_10_12_x86_64.whl; betterproto_rust_codec-0.1.1-cp37-abi3-macosx_11_0_arm64.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; betterproto_rust_codec-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl; betterproto_rust_codec-0.1.1-cp37-abi3-win32.whl; betterproto_rust_codec-0.1.1-cp37-abi3-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
aliyun-log-fastpbSerializes Aliyun Log data structures to…
permissive · top 15,000 on PyPI
protobuf-py-extNative Rust-based encoder/decoder extension…
unclear · top 15,000 on PyPI
betterproto2Generates idiomatic Python code from Protobuf…
permissive · top 5,000 on PyPI
betterprotoGenerates idiomatic Python code from Protobuf 3…
permissive · top 5,000 on PyPI
betterproto2-compilerGenerates idiomatic Python code from Protobuf 3…
permissive · top 15,000 on PyPI
betterproto-fwGenerates idiomatic Python code from Protobuf 3…
permissive · top 15,000 on PyPI
libipldlibipld provides fast Python bindings to a Rust…
permissive · top 15,000 on PyPI
protobuf-pyGenerates well-typed, readable Python code from…
permissive · top 15,000 on PyPI
prophyProphy is a binary serialization protocol with…
permissive · top 15,000 on PyPI
fastpdbfastpdb is a Rust-based drop-in replacement for…
permissive · top 15,000 on PyPI