protovalidate-unofficial 2.1.0
This package uses the official Protovalidate 2.1.0 Rust and CEL core. It supports
CPython 3.8 and later through a cp38-abi3 native extension.
pip install protovalidate-unofficial==2.1.0
Use the same import as version 1:
import protovalidate_unofficial as protovalidate
try:
protovalidate.validate(message)
except protovalidate.ValidationError as error:
violations = error.to_proto()
Validator, validate, collect_violations, ValidationError, CompilationError,
and Violations remain available. Reuse a Validator to cache compiled rules.
fail_fast=True stops after the first violation.
This backport accepts google.protobuf messages. It does not require or support
protobuf-py. Standard rules run in Rust. Custom CEL rules run in the bundled
CEL engine. Validation remains enabled.
Version 2 follows the official 2.1.0 rule semantics. EvaluationError reports a
failed CEL evaluation. Error text and violation order can differ from version 1.
Violation objects keep proto, field_value, and rule_value. Their proto
is a google.protobuf message.
Build and test
Install Rust 1.88 or later and a C++17 compiler. Use a current Clang or GCC. The source package contains the fixed native dependencies; no git submodule checkout is required.
uv tool run --from maturin maturin build --release -i python3.8
uv pip install target/wheels/protovalidate_unofficial-2.1.0-*.whl pytest
PYTHONPATH=gen python -m pytest
Prebuilt wheels do not require a compiler at installation time.
See UPSTREAM.md for source versions and licenses.
Verification
The same wheel passes the behavior tests on CPython 3.8 through 3.14. Python 3.8
also passes with the minimum protobuf==3.20.3 dependency. The Protobuf
conformance harness passes 2,854 cases without skips.
Strict error classification has two upstream exceptions: CEL references to an
unknown field and a wrong operand type raise EvaluationError, instead of
CompilationError. Both messages are rejected.
Metadata
Release files for protovalidate-unofficial 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protovalidate_unofficial-2.1.0.tar.gz | 4.1 MB | With provenance | Details for protovalidate_unofficial-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protovalidate_unofficial-2.1.0-cp38-abi3-manylinux_2_28_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ x86-64 | Details for protovalidate_unofficial-2.1.0-cp38-abi3-manylinux_2_28_x86_64.whl |
Total release size: 7.7 MB
Release files / protovalidate_unofficial-2.1.0.tar.gz
| Download URL | protovalidate_unofficial-2.1.0.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6d4293642a051bf7ead126321f2bca372f01c428e6ed3e4394500e1066b3dd8
|
|
BLAKE2b-256 checksum How to use checksums |
b7e624a07f3dffdf3a14e16b46869ce0490b87fa83e407654a3554ceecf4253f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / protovalidate_unofficial-2.1.0-cp38-abi3-manylinux_2_28_x86_64.whl
| Download URL | protovalidate_unofficial-2.1.0-cp38-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2fd216f532913cbe64042dbd2866b100cff49d3e1dd105533ba3d1dc345bfc7f
|
|
BLAKE2b-256 checksum How to use checksums |
799ef2b6415cc800222915c109cc3d0ffe370f3deaf05fea46e3e66323d6ee4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for protovalidate-unofficial 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for protovalidate_unofficial-2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.