Skip to main content

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

改动历史

Metadata

Release files for betterproto-twirp 1.2.7

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 1.2.7
File Size Uploaded Provenance Actions
betterproto-twirp-1.2.7.tar.gz 26.6 kB Without provenance Details for betterproto-twirp-1.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for betterproto-twirp 1.2.7
File Interpreter ABI Platform Actions
betterproto_twirp-1.2.7-py3-none-any.whl Python 3 none any Details for betterproto_twirp-1.2.7-py3-none-any.whl

Total release size: 56.6 kB

Release files / betterproto-twirp-1.2.7.tar.gz

Download URL betterproto-twirp-1.2.7.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
616fbacabf850f2a862d6f1e05fee49cb41fb62715e25e2d73dcddc7a8405088
BLAKE2b-256 checksum
How to use checksums
b172306086417d790da12897068dc0c7fc8ad07a548720a7b2cee0c78b586b41
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / betterproto_twirp-1.2.7-py3-none-any.whl

Download URL betterproto_twirp-1.2.7-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ee35a38814cc7640c30a8f16e7a78d8fcc4eb8ca8e3bc722bfa29d1692d69ad
BLAKE2b-256 checksum
How to use checksums
4de9117f461cc47620c56d6417b8282e55bdaf07ed0c36c1aec2263854ccde0b
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for betterproto-twirp 1.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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