Skip to main content

pyprotostuben

Latest Version Python Supported Versions MyPy Strict Test Coverage Downloads GitHub stars

Generate Python modules from protobuf files.

usage

pypi package

install with your favorite python package manager

pip install pyprotostuben

Then use protoc plugins to generate python code. See greeting examples for more info.

protoc plugins

protoc-gen-mypy-stub

Generates python stubs (*_pb2.pyi & *_pb2_grpc.pyi files which then used by MyPy type checker / IDE syntax highlits & suggestions).

features:

  • choose message structure immutability / mutability
  • choose async / sync grpc module stubs
  • grpc servicer abstract methods have full signature (with appropriate type args in generics), thus it is easier to implement methods in IDE

plugin options:

  • message-mutable -- add setters for fields, use mutable containers
  • message-all-init-args-optional -- each field is optional in message constructor (even if field is not optional)
  • grpc-sync -- use sync grpc stubs instead of grpc.aio module and async defs
  • grpc-skip-servicer -- don't generate code for servicers
  • grpc-skip-stub -- don't generate code for stubs
  • no-parallel -- disable multiprocessing
  • debug -- turn on plugin debugging

protoc-gen-brokrpc

Generates *_brokrpc.py modules for BrokRPC framework. This is similar to gRPC codegen (*_pb2_grpc.py modules).

plugin options:

  • no-parallel -- disable multiprocessing
  • debug -- turn on plugin debugging

protoc-gen-echo

Saves protoc plugin input to a file. Helps develop protoc plugins.

plugin options:

  • format={raw|binary|json} (default = raw) -- specify output format
  • dest={path} (default = request.json) -- specify file destination

Metadata

Release files for pyprotostuben 0.3.4

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

Source distribution (sdist)

Source distribution for pyprotostuben 0.3.4
File Size Uploaded Provenance Actions
pyprotostuben-0.3.4.tar.gz 26.7 kB With provenance Details for pyprotostuben-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyprotostuben 0.3.4
File Interpreter ABI Platform Actions
pyprotostuben-0.3.4-py3-none-any.whl Python 3 none any Details for pyprotostuben-0.3.4-py3-none-any.whl

Total release size: 64.1 kB

Release files / pyprotostuben-0.3.4.tar.gz

Download URL pyprotostuben-0.3.4.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eb7daf4faeb54d5d382f73cca7a39961f3cf6f9264fda433f525876a15efaa5a
BLAKE2b-256 checksum
How to use checksums
f0aa7700c1aa3acce362224ce8344811a77f17c32cfc6bb0eb4fc41ab96917c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.

Transparency log

Release files / pyprotostuben-0.3.4-py3-none-any.whl

Download URL pyprotostuben-0.3.4-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e565265fea9746a48ec63ce36eec73b0323dde3a4de429e9a9c6a7c724935dc5
BLAKE2b-256 checksum
How to use checksums
0ed8722239a3814adf7cc1df51cba7b65be41cb537f9938b50e6d93435a5dfea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.

Transparency log

Security for pyprotostuben 0.3.4

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyprotostuben-0.3.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2025.

Transparency log

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