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.18.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63303eb9fb898905b8a6f7df4cf9d9cee8a9a27b0b254d5772d4948849054f55 |
|
MD5 | 16e2dd8e3d6df4444669923fcf2f952d |
|
BLAKE2b-256 | 0400b4a69b71861efd95ab7eb66771bc925ff52b94724cf0c9b8928355b79f09 |
Close
Hashes for betterproto_twirp_new-1.2.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eafb2681667d745d1316c295ba9a94958b28ee75bb4f944c42ca03a0a3fb771 |
|
MD5 | 47920e0ca2f739d89e062bd814abd0b9 |
|
BLAKE2b-256 | 8ef243c2eb609f9bfbd0f0cb9cf7d07848b96d8d74337b8d11572bddbfa9d21e |