{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/2"}],"enrichment":{"capability":"Generates idiomatic Python code from Protobuf and gRPC definitions, with built-in async/await support, type hints, and modern dataclass-based serialization.","skillfed_tags":["protobuf-codegen","grpc-async","type-hints"],"use_cases":["Building async gRPC services in Python where the official protoc plugin's lack of native async support is a blocker.","Generating type-checkable Protobuf message classes that work seamlessly with mypy and IDE code completion.","Creating Pydantic-compatible models from Protobuf definitions for validation and serialization in modern frameworks.","Modernizing Protobuf workflows to use Python idioms (e.g., None instead of special wrapped types, datetime instead of Timestamp).","Replacing Google's protoc plugin when import path issues or name-clash bugs affect your project."],"what_it_does":"Betterproto2 is a code generator and runtime library that converts Protobuf and gRPC definitions into readable, idiomatic Python code. Unlike the official Google protoc plugin, it generates modern Python using dataclasses, type hints, async/await syntax, and timezone-aware datetime objects, making the output both more Pythonic and easier to work with in contemporary codebases.\n\nThe library targets Protobuf 3 and modern Python (3.10+), and can generate Pydantic models alongside standard dataclasses. It handles both binary and JSON serialization natively. The project is a ground-up redesign of the original betterproto, still in active development with known breaking changes possible; it trades stability for the ability to fix bugs and add features the official plugin lacks.","worth_installing":"Yes, if you are starting a new async gRPC project in Python 3.10+ and want modern, readable generated code with type support. Conditional caution: the project explicitly warns of active development and potential breaking changes, so pin versions carefully and review release notes before upgrading. Not suitable if you require long-term API stability or need to support Python versions below 3.10."},"id":"betterproto2","links":{"html":"https://skillfed.io/packages/betterproto2","md":"https://skillfed.io/packages/betterproto2.md","pypi":"https://pypi.org/project/betterproto2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-10","license_spdx":"MIT","license_treatment":"permissive","name":"betterproto2","python_support":"supports_current","summary":"A better Protobuf / gRPC generator & library"},"popularity":{"monthly_downloads":916789,"position":4728,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.10.0"}
