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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb5453d182ade04d2cb35a1aa23e5dfa694550898233dfe847da6b7a58633495 |
|
MD5 | 92c5f1255dce69767529f35e0885d5fb |
|
BLAKE2b-256 | 7c7aa5d1193a669246928e767289edd50ecc05a6f46319610b33c5ce59d2d11d |
Close
Hashes for betterproto_twirp_new-1.2.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 394323e758fcec0964184ad2d3cde112fb6c47b5c8d3f6205838dfb3aa8b0d97 |
|
MD5 | 6e59959000cefc924de9c31f601aaf76 |
|
BLAKE2b-256 | cb1cfe55a7271a5c4f5fb1b1bfe0f73e860c080c12a1e0dc8c8ad1fae2776f3a |