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.25.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e60c95a7d0ab099c6953f3774c69fe118f7302050e69d44a9296b7487c5ce4 |
|
MD5 | 09a3a2a0507b8b322cab4dec36aeeab5 |
|
BLAKE2b-256 | 6d0fe43c9dad523f9e20c511483424ed3b3cf159fbffbe4a6ace27b92988757f |
Close
Hashes for betterproto_twirp_new-1.2.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3ab346e083a42b01264adade1de5ad6f79dcbbfc36dfd69366cc9ee8b61fab |
|
MD5 | 9895bbf5b4ead608d7e2cc01ca183250 |
|
BLAKE2b-256 | aa435a0133521d7bd00f234e46cd9faad179ff9168252210c2069d6194fd9356 |