Skip to main content

A protoc plugin for generating idiomatic Python interfaces for protocol buffers

Project description

Proto Pretty

A protoc plugin for generating idiomatic Python interfaces for protocol buffers.

Installation

Install in development mode:

git clone <repo>
cd proto_pretty
uv sync

Usage

Use with protoc by specifying the --python_pretty_out option:

protoc --python_out=. --python_pretty_out=. your_file.proto

This generates:

  • your_file_pb2.py (standard protoc output)
  • your_file_pretty.py (idiomatic Python interface)

Development

Run all checks (tests and static analysis)

mise check

To save generated files during tests for inspection:

mise test --save -s

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

proto_pretty-0.0.1a5.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

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

proto_pretty-0.0.1a5-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file proto_pretty-0.0.1a5.tar.gz.

File metadata

  • Download URL: proto_pretty-0.0.1a5.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for proto_pretty-0.0.1a5.tar.gz
Algorithm Hash digest
SHA256 4538e7c404fabf2503894f731fdfebc8838572cd9a1b5427f5f4bc5bcd12b824
MD5 0cf41a66f97f39ff43256e6700472f70
BLAKE2b-256 4d1f314fc955e9c8e09a30d1dc7b83b0b9ad82189b63f6c8d438aab96f99979e

See more details on using hashes here.

Provenance

The following attestation bundles were made for proto_pretty-0.0.1a5.tar.gz:

Publisher: publish.yml on dallagi/proto_pretty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file proto_pretty-0.0.1a5-py3-none-any.whl.

File metadata

  • Download URL: proto_pretty-0.0.1a5-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for proto_pretty-0.0.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 98e513f977a960afe8b0cf6c3395ed30e18ae8827582422a8ed60e256ff6a738
MD5 c3fb78615ae9b151b7990c4c93f14605
BLAKE2b-256 4656b740b0c9e0f2994069d78b15db0e75dc9d69e0cf9adf78a74d49055d62c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for proto_pretty-0.0.1a5-py3-none-any.whl:

Publisher: publish.yml on dallagi/proto_pretty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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