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

使用

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.6.tar.gz (24.4 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.6-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: betterproto-twirp-1.2.6.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for betterproto-twirp-1.2.6.tar.gz
Algorithm Hash digest
SHA256 c89ee0b8a5e1863c50ff740b3d64e34e1425b599d164110d5ef0847f803068fa
MD5 94e556e9fde6cffa409a4ac2c98ae850
BLAKE2b-256 575a87dc31dcd376cd70b8b8841f9742acb3eefc5fd847f47ff256b3434bf1d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: betterproto_twirp-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for betterproto_twirp-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 79e9efb44c243f46c3d3f48bd8adb6b38c979aeb46fac77b8e2fe5d5b4302a55
MD5 4c9d5dd9f5a80a9181a1bdd96e4e82cd
BLAKE2b-256 dfce62ed7008329a0cd7fb1d9ceaed6bebfedc5ce2c4de51b6acb0a0b8295d91

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