betterproto-rust-codec
Fast conversion between betterproto messages and Protobuf wire format.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; relies on betterproto being installed separately as a peer dependency.
- 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 · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
last release 2024-04-13 (853 days) · last repo commit 2024-04-13 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 199,075 downloads/mo, #9,717 on PyPI
Alternatives
Verify before relying
pip install betterproto-rust-codec
from betterproto_rust_codec import encode_message, decode_message
# Use with betterproto message instances- 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.
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 on it.
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
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.
Requires Python 3.7 or later; relies on betterproto being installed separately as a peer dependency.
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
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 |
| Classifiers | Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust |
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
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “protobuf serialization rust”
- betterproto-rust-codecProvides fast Rust-based conversion between betterproto messages and…
- protobuf-py-extNative Rust-based encoder/decoder extension that accelerates…
- aliyun-log-fastpbSerializes Aliyun Log data structures to protobuf bytes using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also aliyun-log-fastpb · protobuf-py-ext · betterproto2 · betterproto · betterproto2-compiler · betterproto-fw · libipld · protobuf-py · prophy · fastpdb