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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

betterproto_twirp-1.2.13-py3-none-any.whl (213.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: betterproto-twirp-1.2.13.tar.gz
  • Upload date:
  • Size: 177.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for betterproto-twirp-1.2.13.tar.gz
Algorithm Hash digest
SHA256 1d311e167977d02711e775d017d7e96d077114b868a51f76241e97a54fd96134
MD5 1dc64917da93c62fd910a5fc921931f1
BLAKE2b-256 1880c4f126050a760aa1977a3fce0ca773c68a802a4fa0371fb1521d271e8d54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: betterproto_twirp-1.2.13-py3-none-any.whl
  • Upload date:
  • Size: 213.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for betterproto_twirp-1.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 676848b15b4337746b899b2b4c68eb8298bfb2ef64aec277c902bc978cfd9c28
MD5 c2bcfcb04e5149a55f6afab1c9d9b04f
BLAKE2b-256 2d76c06e75973014b56aa9c477aab3c6e4f34ac42db59f940eecbd52d7bd8525

See more details on using hashes here.

Supported by

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