$npx skillfedfor your agent

betterproto-fw

A better Protobuf / gRPC generator & library

With conditionsPyPI Software DevelopmentReleased May 2025495.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — betterproto_fw-2.0.3-py3-none-any.whl
v2.0.3 · released 2025-05-18 · Python >=3.9 · 3 runtime deps: grpclib, python-dateutil, typing-extensions

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
grpclibpython-dateutiltyping-extensions
MaintenanceAging 453 days since the last release
First released
Downloads494,960 / month, #6,344 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
protobuf code generation pythongrpc async pythonprotobuf to dataclassmodern protobuf pythongrpc stub generationprotobuf json serializationasync grpc client server
Topics
protobuf-codegenasync-grpcdataclass-serialization
PyPI keywords
protobufgRPC

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also betterproto · aristaproto · betterproto-rust-codec · betterproto2 · betterproto2-compiler · hatch-protobuf · grpc-gateway-protoc-gen-openapiv2 · twirp · protoc-gen-openapiv2 · grpclib