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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e552b7d4318b8ac01bf5d1276dcf9d035236837eed7635e32f18dd3121a5fafe |
|
MD5 | 6cd84c5ff366725d95ea9ff4cd26e275 |
|
BLAKE2b-256 | 39e55e6e03e8992875ecaf6f3ee5df9c91f233cb7192c6a1256aa856f59e3d69 |
Close
Hashes for betterproto_twirp_new-1.2.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2278712ac584709e0da181244e36bf38f0d5bc414984f1efbc63b31117fc3c |
|
MD5 | 263e2bb51e22cfddb1b7be959966559a |
|
BLAKE2b-256 | 629e31b7a910adad0f4b733a0c5a69dc902f0110af30a02ce63e9e8d5ded3713 |