Skip to main content

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

改动历史

Metadata

Release files for betterproto-twirp-new 1.2.25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for betterproto-twirp-new 1.2.25
File Size Uploaded
betterproto-twirp-new-1.2.25.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for betterproto-twirp-new 1.2.25
File Interpreter ABI Platform
betterproto_twirp_new-1.2.25-py3-none-any.whl Python 3 none any Details

Total release size: 38.5 kB

Release files / betterproto-twirp-new-1.2.25.tar.gz

Download URL betterproto-twirp-new-1.2.25.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
55e60c95a7d0ab099c6953f3774c69fe118f7302050e69d44a9296b7487c5ce4
BLAKE2b-256 checksum
How to use checksums
6d0fe43c9dad523f9e20c511483424ed3b3cf159fbffbe4a6ace27b92988757f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / betterproto_twirp_new-1.2.25-py3-none-any.whl

Download URL betterproto_twirp_new-1.2.25-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a3ab346e083a42b01264adade1de5ad6f79dcbbfc36dfd69366cc9ee8b61fab
BLAKE2b-256 checksum
How to use checksums
aa435a0133521d7bd00f234e46cd9faad179ff9168252210c2069d6194fd9356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.2.25 This release

2 release files

1.2.24

2 release files

1.2.23

2 release files

1.2.22

2 release files

1.2.21

2 release files

1.2.20

2 release files

1.2.19

2 release files

1.2.18

2 release files

1.2.17

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page