chirpstack-api icon indicating copy to clipboard operation
chirpstack-api copied to clipboard

api generation in python betterproto format

Open gilloud opened this issue 2 years ago • 2 comments

  • [X] 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 !

gilloud avatar Mar 01 '22 12:03 gilloud

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

aureylz avatar Mar 01 '22 12:03 aureylz

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.

ldorigo avatar Dec 07 '22 07:12 ldorigo