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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee640a96fa8aead831208b03790efc490debd467583ce1699a4f566ce1f598b6 |
|
MD5 | b6d11c8795ac70a11777117961a98c0e |
|
BLAKE2b-256 | f5d7fd4baafb72809118fba900552e3ec0802482c893a484f57c6ec196c056b5 |
Close
Hashes for betterproto_twirp_new-1.2.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f08a9521694c6ba03246b406b7e52220a544b835034db9de0d6be6c3c62c776b |
|
MD5 | 669c8f3322c8a5f847832d20b8af2253 |
|
BLAKE2b-256 | 64f82da5cd92ca855f100d2b0a55c46c3ea218b45d92fae27c505453f1eb1512 |