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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c064c1b241c07e68a36d2136b4c8ba552d718e9d69837f0f2134092461e5641 |
|
MD5 | 6b76adc2d72e83683d3c3e27d43bab86 |
|
BLAKE2b-256 | b301b6b068c5161d1d0375e17bc93aaf67eb256611c3650c1eba38db802763d0 |
Close
Hashes for betterproto_twirp_new-1.2.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ab7d7e09689e3326daf102e7c59987be1449029b14f8e413e2e5d73f9aa0a4 |
|
MD5 | 9062ce223b710f9de9cee73b4ae8633f |
|
BLAKE2b-256 | a3ac57a842878c7088563ee2e78246a3384eac2cedfe5b49a165c618fa9fc278 |