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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5dee3fa08af5050c03fec91cd03f81d84bdde33b959dcfeeb91bf265508e6b |
|
MD5 | b070ba00cea3c611ea78dfb155b3795d |
|
BLAKE2b-256 | 426cb4a4442bb6b1da36d48961d20165a9a593bc1524b0a4f397df2bee8fbae9 |
Close
Hashes for betterproto_twirp_new-1.2.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38bcdff538523ac85d1e602713d71b2b48e86cf70614a426c737f94779e5956 |
|
MD5 | 0987441dbb70dbaf63e64d14408f08f8 |
|
BLAKE2b-256 | 7be8e57f1dcc1ada08a12dabcb773f919f0699e7ff33e28e4ac3ec8c5b937cd6 |