--- id: betterproto-rust-codec version: "0.1.1" license: MIT license_treatment: permissive maintenance: dormant --- # betterproto-rust-codec — Fast conversion between betterproto messages and Protobuf wire format. License: permissive · Maintenance: dormant · Downloads: 199.1K/mo ## 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 above — 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 pip install betterproto-rust-codec uv add betterproto-rust-codec poetry add betterproto-rust-codec ## Installing 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_current - Install friction: medium - Maintenance: dormant - Downloads: 199.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags protobuf serialization rust, betterproto codec, fast protobuf encoding, protobuf wire format conversion, rust protobuf performance, protobuf, serialization, rust-extension [View on SkillFed](https://skillfed.io/packages/betterproto-rust-codec) · [View on PyPI](https://pypi.org/project/betterproto-rust-codec/)