Skip to main content

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


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.16.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

betterproto_twirp-1.2.16-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file betterproto-twirp-1.2.16.tar.gz.

File metadata

  • Download URL: betterproto-twirp-1.2.16.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.8

File hashes

Hashes for betterproto-twirp-1.2.16.tar.gz
Algorithm Hash digest
SHA256 7a5e8c170d5be4cf8ed3387aa49020c02748a2f85583f461f71979c716dc72d0
MD5 bcd16637dadf8ddd6d18cc2096aef82a
BLAKE2b-256 a265142f6ca3ceb6bd919ecd91fc008e167644c6e6b0784f82b4dd046a93a338

See more details on using hashes here.

File details

Details for the file betterproto_twirp-1.2.16-py3-none-any.whl.

File metadata

  • Download URL: betterproto_twirp-1.2.16-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.8

File hashes

Hashes for betterproto_twirp-1.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1d84f341cc5b592dc70c634083780c0239f0d14d8c925ad43a7c230838d0da9b
MD5 93e3fe95b2da21309c3c36164d742e3a
BLAKE2b-256 5b7539c987f4c8c729fd116ce226bd9dc5da0bea130190a7467fbbcc46b38a71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page