Compiler for betterproto2, a Python protobuf library with async support, Pydantic integration, and typed generated code. Current version 0.9.0. Releases are coupled with the betterproto2 library; compiler versions match library releases with a 'compiler-v' tag. Released monthly or on-demand.
pip install betterproto2-compilerVerified import paths — ran on the pinned version, not inferred.
Compile all .proto files in 'my_protos' directory into Python modules in 'output/'.
Update to betterproto2-compiler >=0.7.0 and use the new Compile class.
Uninstall betterproto and install betterproto2-compiler.
Use Python 3.10 to 3.12 (3.13 not yet tested).
Install both: pip install betterproto2 betterproto2-compiler