betterproto-fw
A better Protobuf / gRPC generator & library
Decision gist · record as of 2026-08-14
Yes, if you are building gRPC services or working with Protobuf 3 and want modern, readable generated Python code with async support. The low install friction and permissive MIT license make it straightforward. However, the aging maintenance status (453 days since last release) means you should verify that the generated code and runtime meet your current Protobuf and gRPC versions before committing to production.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires protoc compiler and grpcio-tools to generate code from .proto files; requires Python 3.9+.
- Low install friction with three lightweight runtime dependencies (grpclib, python-dateutil, typing-extensions).
- Package is aging—last release was 453 days ago—so maintenance activity is minimal; use only if the generated code meets your needs without expecting active updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package and code it generates with minimal restrictions, provided you retain the license notice.
last release 2025-05-18 (453 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 494,960 downloads/mo, #6,344 on PyPI
Alternatives
Verify before relying
pip install betterproto-fw
import betterproto
test = Greeting(message="Hello")
serialized = bytes(test)
another = Greeting().parse(serialized)
print(another.to_json())- Whether betterproto-fw is actively maintained or is a snapshot of an upstream project.
- Compatibility with the latest Protobuf 3 wire format and any breaking changes in recent gRPC releases.
- Performance characteristics compared to the official Google protoc Python plugin for large message volumes.
- Whether the fork maintains feature parity with the original betterproto project.
What it is and what it does
betterproto-fw is a code generator and runtime library for Protobuf 3 and gRPC that produces modern, readable Python code using dataclasses, type hints, and async/await. It generates clean classes that inherit from betterproto.Message and support both binary and JSON serialization out of the box, using grpclib for async gRPC support.
The package includes both a protoc plugin (installed via the [compiler] extra) for code generation and a runtime library for using the generated code. It generates async-first gRPC stubs, supports Pydantic model generation, and uses Python's built-in datetime for timestamp/duration types. The wire format is identical to standard Protobuf, so generated code can interoperate with other Protobuf implementations.
Use it for
- Generate async gRPC client and server stubs with full type hints and IDE completion support.
- Convert Protobuf message definitions into dataclasses for use in modern Python applications.
- Serialize and deserialize messages to/from JSON with configurable field naming (camelCase or snake_case).
- Build microservices using async/await patterns with gRPC and grpclib.
- Work with Protobuf 3 messages using timezone-aware datetime and timedelta objects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building gRPC services or working with Protobuf 3 and want modern, readable generated Python code with async support.
The low install friction and permissive MIT license make it straightforward. However, the aging maintenance status (453 days since last release) means you should verify that the generated code and runtime meet your current Protobuf and gRPC versions before committing to production.
Install
betterproto-fw on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (grpclib, python-dateutil, typing-extensions). Package is aging—last release was 453 days ago—so maintenance activity is minimal; use only if the generated code meets your needs without expecting active updates.
Requires protoc compiler and grpcio-tools to generate code from .proto files; requires Python 3.9+.
License in practice
MIT license is permissive; you can use, modify, and distribute this package and code it generates with minimal restrictions, provided you retain the license notice.
Quickstart
pip install betterproto-fw
import betterproto
test = Greeting(message="Hello")
serialized = bytes(test)
another = Greeting().parse(serialized)
print(another.to_json())
Verify before relying
- Whether betterproto-fw is actively maintained or is a snapshot of an upstream project.
- Compatibility with the latest Protobuf 3 wire format and any breaking changes in recent gRPC releases.
- Performance characteristics compared to the official Google protoc Python plugin for large message volumes.
- Whether the fork maintains feature parity with the original betterproto project.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesgrpclibpython-dateutiltyping-extensions |
| Maintenance | Aging 453 days since the last release |
| First released | |
| Downloads | 494,960 / month, #6,344 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: betterproto_fw-2.0.3-py3-none-any.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 code generation python”
- betterproto-fwGenerates idiomatic Python code from Protobuf 3 and gRPC definitions,…
- betterprotoGenerates idiomatic Python code from Protobuf 3 and gRPC definitions,…
- hatch-protobufA Hatch build plugin that generates Python files from Protocol…
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 betterproto · aristaproto · betterproto-rust-codec · betterproto2 · betterproto2-compiler · hatch-protobuf · grpc-gateway-protoc-gen-openapiv2 · twirp · protoc-gen-openapiv2 · grpclib