brocaar/chirpstack-api

api generation in python betterproto format

Opened this issue · 2 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

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 !

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

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.