--- id: protoc-gen-validate version: "1.3.3" license: unclear license_treatment: unclear maintenance: abandoned --- # protoc-gen-validate — PGV for python via just-in-time code generation License: unclear · Maintenance: abandoned · Downloads: 208.1K/mo ## What it is and what it does Protoc-gen-validate is a Python implementation that enforces semantic validation rules on protocol buffer messages at runtime. While protobuf's type system guarantees structural correctness, it cannot enforce business logic constraints like value ranges, string patterns, or required relationships between fields. This package reads validation annotations embedded in your protobuf schema and applies runtime checks that raise ValidationFailed when a message violates those constraints. The package depends on Jinja2, protobuf, and validate-email to generate and execute validators. It supports Python 3.10 through 3.13 and installs with low friction as a pure Python wheel. The repository is archived and abandoned, meaning no new features or security patches are being released, so it is suitable only for stable, self-contained use cases where you can accept the risk of unpatched issues. Use it for: - Validate incoming API request payloads against business rules before processing. - Enforce data integrity constraints in microservices that exchange protobuf messages across service boundaries. - Catch invalid data early in a data pipeline by validating protocol buffer records before storage. - Test that generated protobuf messages conform to schema-defined rules in unit tests. - Ensure user input meets semantic requirements when deserializing protobuf from untrusted sources. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Validates protocol buffer messages against semantic rules defined in protobuf schema annotations, enforcing constraints that go beyond type checking. Yes, with conditions. The package solves a real problem—runtime semantic validation of protobuf messages—and has low install friction and no known vulnerabilities. However, the repository is archived and abandoned, so install only if you are comfortable maintaining a frozen dependency or if your validation rules are stable and unlikely to need updates. Verify the license terms before use in commercial contexts. ## Install pip install protoc-gen-validate uv add protoc-gen-validate poetry add protoc-gen-validate ## Installing protoc-gen-validate Before you install: Low install friction with pure Python wheels. Repository is archived and marked abandoned as of the last commit in 2026-05-27, with no active maintenance—use only if you accept the risk of unpatched issues. License in practice: License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license terms before depending on this package in commercial or restricted contexts. Quickstart: pip install protoc-gen-validate from protoc_gen_validate.validator import validate, ValidationFailed try: validate(message) except ValidationFailed as err: print(err) Requires Python 3.10 or later; protobuf messages must be generated with validation annotations in the schema. Verify before relying: - Which protobuf validation rules from validate.proto are actually implemented in this Python version - Whether the abandoned status affects compatibility with current protobuf library versions - Actual license terms and attribution requirements for the package ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 208.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags protobuf message validation, protoc-gen-validate python, semantic validation protobuf, runtime protobuf constraints, pgv python implementation, protobuf schema rules enforcement, protobuf, validation, data-integrity [View on SkillFed](https://skillfed.io/packages/protoc-gen-validate) · [View on PyPI](https://pypi.org/project/protoc-gen-validate/)