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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb89a75b48a72547447308556ec8415c60d6621d01a7d1d47311c3126f4821cb |
|
MD5 | c871c40347d29789c669e82530c30852 |
|
BLAKE2b-256 | 672490f07d6a9a30468a11d1ab64b090ecf8eb72637852b5a213c3c292a6dfae |
Close
Hashes for betterproto_twirp_new-1.2.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ada2c37b8b03305b0f07f3980263b0a8640192e51ccdf7eaf01c331ca7b5170 |
|
MD5 | bd01d9157344d399ca58e920f2c774f7 |
|
BLAKE2b-256 | 7e8442ca7c2c303ed1d5243f2d966dbef5f59350dbe57825b5de0f4e9d562b06 |