# danielgtaylor/python-betterproto

Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC

Repository: https://github.com/danielgtaylor/python-betterproto
Canonical: https://ross.abutalabs.com/products/python-betterproto
Language: Python
License: MIT
License Family: permissive
Topics: python-3, protocol-buffer-compiler, asyncio, grpc, code-generator, plugin
Last push: 2025-07-17T12:50:40+00:00

## Health v2 (maintenance only)
Score: 37/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 32, release rhythm 8, longevity 100
- inputs: {"age_days": 2519, "days_push": 412, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1770, forks 234 (observed 2026-08-28T04:05:33.985988+00:00)

## What it is
A Python code generator and runtime library for Protobuf 3 and async gRPC that produces idiomatic, typed, dataclass-based Python code. It serves as a modern alternative to the official Google protoc Python plugin, with built-in binary/JSON serialization and async/await support.

## Use cases
- generate idiomatic python code from protobuf definitions
- async grpc client and server in python
- serialize protobuf messages to binary and json
- generate pydantic models from proto files
- replace official google protobuf python codegen
- type-checked protobuf stubs with mypy support

## When to choose
- you want modern, readable, typed Python code from .proto files
- you need async/await gRPC support out of the box
- you want built-in JSON serialization and pydantic model generation

## When to avoid
- you need Protobuf 2 or legacy feature support
- you require a strict drop-in replacement for the official protobuf runtime
- you want the most actively developed version - the project has moved to betterproto2

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, rpc
- domain: developer-tools, apis, backend
- platform: python, cross-platform
- tags: protobuf, grpc, asyncio, dataclasses, pydantic, protoc-plugin, code-generator, code-generation

## Member repositories
- danielgtaylor/python-betterproto (main) score 37

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.985988+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:26:02.720819+00:00, confidence not recorded.
  - readme: https://github.com/danielgtaylor/python-betterproto (fetched 2026-08-28T04:05:33.985988+00:00, sha a4662f38052b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
