python-betterproto icon indicating copy to clipboard operation
python-betterproto copied to clipboard

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

Results 211 python-betterproto issues
Sort by recently updated
recently updated
newest added

## Env Python: 3.9 protoc: 3.15.6 betterproto: 2.0.0b3 OS: linux --- ### Given proto ```proto syntax = "proto3"; package com.test.v1; import "google/protobuf/empty.proto"; service TestService { rpc Test(PublisherUserID) returns (google.protobuf.Empty); }...

compiler-bug

JSON requires that keys be represented as strings, however proto allows map keys to be any integral or string type. So when specifying a message with a JSON representation, integer...

bug

While I’ve got nesting message in my proto file, it always generates wrong class name (wrong at lower case & upper case transforming). This bothers me a lot. Could someone...

compiler-bug

Compilation of proto files using 2.0.0b3 ```sh protoc -I . --python_betterproto_out=prototest base.proto example.proto ``` ```proto # base.proto syntax = "proto3"; package Foo; message Bar { string value = 1; }...

compiler-bug

Is there a better way to represent this dictionary into a `Struct()`? (Currently using 2.0.0b3) ```python capability_dict = {"@context": "https://w3id.org/security/v2", "target": "urn:trinsic:wallets:noop", "proof": { "created": datetime.datetime.now() } } ``` The...

enhancement

Currently, the library provides some automated conversion between the Well-known Google types (eg Timestamp datetime). Projects may wish to use similar conversion rules between some protobuf messages and internal types...

enhancement

If you have a message called, `some_message` and `SomeMessage`, the resulting python has two dataclasses called `SomeMessage`.

compiler-bug

Messages with underscores in their name do not generate proper proto. Consider a message of the following format: ``` message some_message { enum Type { type1 = 0; type2 =...

compiler-bug

Proto file: ``` message BadRegexTestMessage { uint64 ds18b20_serial_code = 1; } ``` Result: ``` class BadRegexTestMessage(betterproto.Message): ds18_b20_serial_code: int = betterproto.uint64_field(1) ``` `ds18b20` becomes `ds18_b20`.

compiler-bug

Given the following protobuf: ``` message ABCAnswerDeleted { uint64 test_id = 1; } ``` Version: `betterproto[compiler]` -> `2.0.0b2` or `2.0.0b3` gives ``` @dataclass(eq=False, repr=False) class AbcAnswerDeleted(betterproto.Message): test_id: int = betterproto.uint64_field(1)...

compiler-bug