python-betterproto
python-betterproto copied to clipboard
Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
If a `oneof` contains a submessage, and a field is assigned to this submessage, `which_one_of` does not report the submessage. Here is a proto file, generated code and code to...
Adds issue templates to help prompt people to explain behaviour when opening issues etc.
Hiya, I've just started working with gather.town which provides a version 3 proto file. I had to remove the optional keywords (as best I can tell, they're somewhat unnecessary in...
betterproto already uses airspeed velocity to run benchmarks with poe but for some PRs it may not be entirely obvious they hurt performance. Adding a comment or something else to...
There're a few issues with the example server, even after using the prerelease version. Probably not worth a PR, so here's an update example with notes below: ```python import asyncio...
# Problem Currently these two enums in the same file will be both compiled into the same name of `ContentStatus` ``` message Content {enum Status{ ... }} enum ContentStatus{ ......
Is it possible to compile .proto files with the betterproto plugin from a custom setuptools command? For example, ```python setup.py build_proto``` This is what my setup.py looks like: ``` import...
Say I've compiled: `class Priority(betterproto.Enum):` ` PRIORITY_LOW = 0` ` PRIORITY_MEDIUM = 1` ` PRIORITY_HIGH = 2` Accessing the string value of each instance (which is defined by `.toString()`) is...
It would be nice to have support for the new containers introduced in 3.9 as an option for slightly faster startup times. Ideally this would be enabled by passed to...