A better Protobuf / Twirp generator & library
Project description
twirp python sdk generator
python-betterproto 生成的代码只能配合 grpc 使用,但生成的 message 确实很香。所以我重写了 service 代码生成逻辑,使其支持 twirp 协议。
我发现可以上传到 pypi,包名是 betterproto-twirp
安装
-
本地源码安装:
pip install .
-
从 pypi 安装:
pip install betterproto-twirp 安装失败的话先安装 pip install 'betterproto-twirp[compiler]'
使用
protoc -I . --python_betterproto_out=. service.proto
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for betterproto-twirp-new-1.2.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff829df221f9fa2dc6b205ffda95d81878c08455399419b2955a181abee404b7 |
|
MD5 | ce7e78c0770ba9c2e159e64b5ab6e6f0 |
|
BLAKE2b-256 | e3cfaf9f767f56026019c60aee6ebdadc372314fa53d77bee7efdbde2e47030b |
Close
Hashes for betterproto_twirp_new-1.2.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b2353f461ad8d309d07f617e3a7293093f3f520918e2a52b71c4e248771e97 |
|
MD5 | 101a891432958d64466fdf426f9c9d09 |
|
BLAKE2b-256 | 96de0cc6bbbd520311db02da3c78c69d4d18ba4fa044ccf23aabd5932fff5d87 |