{"categories":[{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"A Hatch build plugin that generates Python files from Protocol Buffers `.proto` files using grpcio-tools, with support for gRPC, type stubs, and custom generators.","skillfed_tags":["protobuf","grpc","build-automation"],"use_cases":["Generate gRPC service stubs and message classes during package build for microservices that use Protocol Buffers.","Consume `.proto` definitions from published packages (e.g., googleapis-common-protos) without rebuilding them.","Integrate custom protoc plugins (TypeScript, Go, etc.) into a Python project's build pipeline.","Maintain type stubs (.pyi files) alongside generated Protocol Buffer code for IDE and mypy support.","Automatically compile `.proto` files in src-layout or flat-layout projects with sensible defaults."],"what_it_does":"hatch-protobuf is a build-time plugin for the Hatch package manager that automates the generation of Python code from Protocol Buffer definitions. It wraps grpcio-tools' protoc compiler and integrates it into Hatch's build hook system, so `.proto` files are compiled to Python during package builds without manual steps.\n\nThe plugin generates Python message classes and gRPC service stubs by default, with optional `.pyi` type stub files for static analysis. It supports custom generators (e.g., for TypeScript or other languages), can import `.proto` definitions from installed packages via site-packages, and allows configuration of input/output paths and protoc options through `pyproject.toml`. It's designed for projects that use Protocol Buffers as part of their build process and want code generation to happen automatically during packaging.","worth_installing":"Yes, if you use Hatch and Protocol Buffers. Low friction to install, no known vulnerabilities, actively maintained, and solves a real build-automation problem. The pre-alpha status (Development Status :: 2) suggests the API may change, so pin the version in your build dependencies. Not worth installing if you don't use Hatch or don't generate code from `.proto` files."},"id":"hatch-protobuf","links":{"html":"https://skillfed.io/packages/hatch-protobuf","md":"https://skillfed.io/packages/hatch-protobuf.md","pypi":"https://pypi.org/project/hatch-protobuf/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-16","license_spdx":"MPL-2.0","license_treatment":"copyleft","name":"hatch-protobuf","python_support":"supports_current","summary":"A Hatch build plugin to generate Python files from Protocol Buffers .proto files"},"popularity":{"monthly_downloads":190511,"position":9908,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
