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

### Summary Allow to customize the base class, to provide helper methods and enrich the model ### What is the feature request for? The core library ### The Problem We...

enhancement

When using betterproto enums in a Ray environment, I encounter a pickling error when a task attempts to deserialize an enum member. For example, given an enum defined as follows:...

## Summary ## Checklist - [x] If code changes were made then they have been tested. - [x] I have updated the documentation to reflect the changes. - [x] This...

### Summary Underscore is added after a number in the field name, e.g. `c2s` becomes `c2_s`. ### Reproduction Steps ```proto syntax = "proto3"; message Example { string c2s = 1;...

bug
investigation needed

## Summary Fixes #657 Usage: ```python >>> betterproto.casing.snake_case("C2S2C c2s2c") 'c2s2c_c2s2c' >>> betterproto.casing.snake_case("Client2Server CLIENT2SERVER client2Server") 'client2server_client2server_client2server' >>> betterproto.casing.snake_case("clientToServer") 'client_to_server' ``` ## Checklist - [x] If code changes were made then they...

### Summary from_dict method did not support casing ### What is the feature request for? The core library ### The Problem When using `to_dict` method I can pass case, but...

enhancement

### Summary The _serialized_on_wire attribute is 99% of the functionality I require. Because it is a dunder attribute I can't rely on the attribute in future updates. ### What is...

enhancement

## Summary I find that often, we want a non async grpc client. This PR adds a `*SyncStub` generated class using only the standard synchronous grpc library. It is pretty...

## Summary Hey 👋 I generated code with pydantic validation. A nested class failed the validation. For some reason, the object is validated twice once with the initialized object and...

### Summary When using timedelta with explicitly setting the seconds to 0 the output is empty instead of being explicitly set ### Reproduction Steps ```python3 >>> from datetime import timedelta...

bug
investigation needed