$npx skillfedfor your agent

proto-schema-parser

A Pure Python Protobuf .proto Parser

With conditionsPyPI Software DevelopmentReleased Nov 2025630.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — proto_schema_parser-2.1.0-py3-none-any.whl
v2.1.0 · released 2025-11-05 · Python >=3.9 · 1 runtime deps: antlr4-python3-runtime

Yes, if you need to programmatically parse or generate Protobuf schemas. The package is stable, has no known vulnerabilities, and handles modern Protobuf syntax including editions. The aging maintenance status (282 days since last release) is a minor concern for long-term support, but the core functionality is mature and unlikely to require frequent updates unless Protobuf itself introduces breaking changes.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low friction installation with a single pure-Python runtime dependency (antlr4-python3-runtime).
  • Maintenance status is aging—last release was 282 days ago—so expect slower response to issues, though no active problems are evident.

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely as long as you include the license notice.

last release 2025-11-05 (282 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 630,224 downloads/mo, #5,663 on PyPI

Verify before relying

pip install proto-schema-parser

from proto_schema_parser.parser import Parser
from proto_schema_parser.generator import Generator

text = 'syntax = "proto3";\nmessage Example { string field = 1; }'
ast = Parser().parse(text)
proto_string = Generator().generate(ast)
  • Performance characteristics when parsing large or deeply nested .proto files
  • Completeness of support for all proto2/proto3 language features beyond those listed
  • Whether the autogenerated lexer/parser from Buf's grammar is kept in sync with upstream changes
Same gist for agents: .md · .json

What it is and what it does

Proto Schema Parser is a pure-Python library that reads Protobuf schema files and converts them into an abstract syntax tree (AST) for programmatic inspection and manipulation. It uses ANTLR4-based lexer and parser rules autogenerated from Buf's grammar files to handle the conversion. The library also provides a Generator class to write AST objects back to valid Protobuf schema strings, making it useful for tools that need to read, analyze, or transform .proto files without invoking the official protoc compiler.

The package supports proto2 and proto3 syntax, as well as the newer protobuf editions (2023 and 2024). It preserves comments, handles all major schema constructs (messages, fields, enums, services, imports, options), and works with advanced features like oneof, map types, groups, and stream RPC definitions. A developer would use this when building code generators, schema validators, documentation tools, or any system that needs to parse and understand Protobuf schemas as data structures.

Use it for

  • Build a code generator that reads .proto files and emits client libraries in a custom language
  • Validate Protobuf schemas against organizational naming or structure conventions
  • Extract documentation or metadata from .proto files for API documentation systems
  • Transform or migrate Protobuf schemas between proto2, proto3, and edition syntax
  • Analyze message definitions to enforce backward compatibility rules
  • Generate type stubs or schema diagrams from Protobuf definitions

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to programmatically parse or generate Protobuf schemas.

The package is stable, has no known vulnerabilities, and handles modern Protobuf syntax including editions. The aging maintenance status (282 days since last release) is a minor concern for long-term support, but the core functionality is mature and unlikely to require frequent updates unless Protobuf itself introduces breaking changes.

Install

proto-schema-parser on PyPI

Before you install

Low friction installation with a single pure-Python runtime dependency (antlr4-python3-runtime). Maintenance status is aging—last release was 282 days ago—so expect slower response to issues, though no active problems are evident.

Requires Python 3.9 or later.

License in practice

MIT license is permissive, allowing commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely as long as you include the license notice.

Quickstart

pip install proto-schema-parser

from proto_schema_parser.parser import Parser
from proto_schema_parser.generator import Generator

text = 'syntax = "proto3";\nmessage Example { string field = 1; }'
ast = Parser().parse(text)
proto_string = Generator().generate(ast)

Verify before relying

  • Performance characteristics when parsing large or deeply nested .proto files
  • Completeness of support for all proto2/proto3 language features beyond those listed
  • Whether the autogenerated lexer/parser from Buf's grammar is kept in sync with upstream changes

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
antlr4-python3-runtime
MaintenanceAging 282 days since the last release
First released
Downloads630,224 / month, #5,663 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: proto_schema_parser-2.1.0-py3-none-any.whl

Tags

Capabilities
protobuf schema parserproto file parserprotobuf astparse proto3 filesprotobuf code generationproto schema astprotobuf editions support
Topics
protobufparsercode-generation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “protobuf schema parser”

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also pure-protobuf · pbtools · protobuf-py · protobuf-decoder · aristaproto · sentry-protos · betterproto · opensearch-protobufs · hatch-protobuf · protoletariat