Skip to main content

A tool to visualize .proto file hierarchies

Project description

Proto Explorer

A lightweight, interactive browser for exploring Protobuf/gRPC hierarchies

Python Streamlit Protobuf

Proto Explorer lets you visually explore Protobuf message hierarchies (*.proto files) using only the compiled Python files (*_pb2.py). No .proto files or regeneration required.

✅ Expand nested message fields
✅ Show oneof group hierarchy
✅ Correctly detect map<key, value> fields
✅ Load _pb2.py from custom paths
✅ Runs locally; no server or DB needed


🌟 Demo Screenshot

Proto Explorer Screenshot


🔧 Installation

Clone the repository and install dependencies:

pip install proto-explorer

▶️ Run the App

proto-explorer -m <compiled_protobuf_pb2_module> [-p </path/to/compiled/protobuf>]

️✍️ Example

  1. Clone a test Protobuf set (example: Google Pub/Sub):
git clone https://github.com/googleapis/googleapis.git
cd googleapis
  1. Compile the .proto files to _pb2.py:
python -m grpc_tools.protoc \
  --proto_path=. \
  --python_out=. \
  google/pubsub/v1/*.proto \
  google/api/*.proto

Confirm that the following _pb2.py file exists:

google/pubsub/v1/pubsub_pb2.py
  1. Launch Proto Explorer:
proto-explorer -m google.pubsub.v1.pubsub_pb2 -p .
Launching Proto Explorer...

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501

Now open your browser and go to: http://localhost:8501/ Enjoy exploring your Protobuf message hierarchy!

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_explorer-0.3.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

proto_explorer-0.3.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file proto_explorer-0.3.3.tar.gz.

File metadata

  • Download URL: proto_explorer-0.3.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.4 Windows/10

File hashes

Hashes for proto_explorer-0.3.3.tar.gz
Algorithm Hash digest
SHA256 64637a6c7406c92c8a92212929412abfe5b4aa0be07f20d30c3afaeda623730b
MD5 09a81500310fa3ea95c9500681c0c816
BLAKE2b-256 6290329b34cc0713953a7f2ed0e701a80553a3bcebbb99ee1bf4849ad5d182f3

See more details on using hashes here.

File details

Details for the file proto_explorer-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: proto_explorer-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.4 Windows/10

File hashes

Hashes for proto_explorer-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad870a4b398af19890af38da6c5e323751d1c0ef5a6cd6909957bc2a66906c6c
MD5 5f1818ad2ecc833cffce7e3221925eef
BLAKE2b-256 73bff6908c973c2f3062dfa78fc5f787ca351ced6f81143b334b359bb2de52f2

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