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
✅ No server or DB needed — runs locally


🌟 Demo Screenshot

Coming soon – add screenshot here once UI finalized You can insert a screenshot like:

Proto Explorer Screenshot


🔧 Installation

Clone the repository and install dependencies:

pip install proto-explorer

▶️ Run the App

proto-explorer --proto_module <compiled_protobuf_pb2_module> [--load_path </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 --proto_module google.pubsub.v1.pubsub_pb2 --load_path .
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.2.2.tar.gz (5.4 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.2.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proto_explorer-0.2.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for proto_explorer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 3bde6975104ea056afd243d47e362f14669742c1022d0b977a0b9b42fa593a8f
MD5 67bb0566c88d62cab1164f86d9d61bcf
BLAKE2b-256 0f5d4a5cb35649f60126bfe65414942b111e4ee76abf5971f5946a919123fbc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proto_explorer-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

File hashes

Hashes for proto_explorer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa8d1795134e7dda05e53a877daf644f801d50ae3fffc11dfb82ac24969f8e4
MD5 b9c89a8066dfd2710e7bac882dbc1711
BLAKE2b-256 3f94200e1db52419f3ea7b606b7cfca927fa0206bf7b75c251e64a8f6a8bb72e

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