brocaar / chirpstack-api

ChirpStack API (Protobuf & gRPC)
MIT License
67 stars 82 forks source link

api generation in python betterproto format #54

Open gilloud opened 2 years ago

gilloud commented 2 years ago

Summary

I want to suggest to the community the generation of python packages in the betterproto format. This format is more robust for python development, and up to date regarding the norm.

What is the use-case?

Provide to the developpers a new way to interact with the chirpstack api

Implementation description

A new docker/Makefile could be created to generate in the python directory new module named chirpstack_api_betterproto

Can you implement this by yourself and make a pull request?

Yes ! Of course !

aureylz commented 2 years ago

I guess a chirpstack_api_betterproto library can help to solve this problem (Using MyPy with chirpstack_api)

ldorigo commented 1 year ago

Came for a similar issue although I'm not sure this was exactly what asked by op: you can also use the plugin described here to generate python .pyi types that make it much nicer to interact with the API.