mypy-protobuf icon indicating copy to clipboard operation
mypy-protobuf copied to clipboard

open source tools to generate mypy stubs from protobufs

Results 45 mypy-protobuf issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/nipunn1313/mypy-protobuf/assets/1300387/c0c060a4-860f-465f-bbda-ea7e0d1f4316)

Hi! Recently, Buf (org dealing with standardizing protobuf practices) has created a facility for compiling proto files without requiring installation of the individual plugins: https://buf.build/blog/remote-plugin-execution Adding mypy-protobuf to the repo...

help wanted

regressed in #489 - let's see if we can get it back before releasing.

I keep playing with protobuf’s [enumerations](https://protobuf.dev/programming-guides/proto3/#enum) which are encoded as 32b integers. When compiled to Python and using this plugin, protobuf enums are represented using an `int` subtype [`EnumTypeWrapper`](https://github.com/python/typeshed/blob/16ae4c61201cd8b96b8b22cdfb2ab9e89ba5bcf2/stubs/protobuf/google/protobuf/internal/enum_type_wrapper.pyi#L18) to...

Hello, `protobuf-3` is still alive, especially since it is the `protoc` version that is available in stable ubuntu and other distros and providing the native libraries. Starting from `mypy-protobuf-3.4.0` the...

It would be useful if the generated header comment would contain the version of the plugin, e.g. ```python """ @generated by mypy-protobuf 3.3.0/libprotoc 3.19.5. Do not edit manually! isort:skip_file """...

Has anyone compared this with mypy-protobuf's output? I'm not sure if it supports grpc or not.

help wanted

see #216 This pr add flag indicate mypy-protobuf should generate grpc stubs with `aio.Server` support script like this ```sh protoc \ --python_out=output/location \ --mypy_out=readable_stubs:output/location \ --grpc_out=output/location \ --mypy_grpc_out=aio,readable_stubs:output/location ``` generate...

Hi, It would be great if json_format definitions are also created while compiling the proto file. Thanks, Dilip Vamsi.

help wanted