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
使用
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
betterproto-twirp-1.2.5.tar.gz
(24.4 kB
view hashes)
Built Distribution
Close
Hashes for betterproto_twirp-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d100b937b140b4bad41a55e0722fd4b4a3b718152b1288ce80c4fca6529dac9b |
|
MD5 | b7ef82937f3fcf63d5f977f3c7d8b8eb |
|
BLAKE2b-256 | 71fbe70d74e10f1f47c2f92ef81c72e752166f64f7f6379eedbd567e124f2a41 |