protoc-gen-validate
PGV for python via just-in-time code generation
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; protobuf messages must be generated with validation annotations in the schema.
- 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 · maintenance · safety
(unclear) — 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.
last release 2026-02-18 (177 days) · last repo commit 2026-05-27 · 4,120 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 208,130 downloads/mo, #9,535 on PyPI
Alternatives
Verify before relying
pip install protoc-gen-validate
from protoc_gen_validate.validator import validate, ValidationFailed
try:
validate(message)
except ValidationFailed as err:
print(err)- 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
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 on this page. Verify before relying on it.
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
protoc-gen-validate on PyPI
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.
Requires Python 3.10 or later; protobuf messages must be generated with validation annotations in the schema.
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)
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 the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesJinja2protobufvalidate-email |
| Maintenance | Abandoned 177 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 208,130 / month, #9,535 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: protoc_gen_validate-1.3.3-py3-none-any.whl
Tags
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 › “protoc-gen-validate python”
- protoc-gen-validateValidates protocol buffer messages against semantic rules defined in…
- protovalidateValidates Protocol Buffer messages against semantic rules defined in…
- eightEight provides a compatibility layer that lets you write Python 3…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also protovalidate · pure-protobuf · proto-plus · dbt-protos · foxglove-schemas-protobuf · protoc-wheel-0 · opensearch-protobufs · pylint-protobuf · nanopb · rfc3987-syntax