Skip to main content

Validation Framework for Python3

A quick example

A registration form accepts this data structure:

valid_test_data = {
    'email': 'test@example.com',
    'pw': 'password123',
    'name': 'Test Username',
    'birth_year': 1984
}

The validation process can be:

import gladiator as gl

registration_form_validator = (
    ('email', gl.required, gl.format_email),
    ('pw', gl.required, gl.length_min(5)),
    ('name', gl.required, gl.type_(str)),
    ('birth_year', gl.required, gl.type_(int), gl.value_max(2014 - 18))
)

result = gl.validate(registration_form_validator, valid_test_data)
assert result.success is True

Metadata

Release files for Gladiator 0.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Gladiator 0.6.4
File Size Uploaded Provenance
Gladiator-0.6.4.tar.gz 6.2 kB Without provenance Details

Release files / Gladiator-0.6.4.tar.gz

Download URL Gladiator-0.6.4.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
43c5efc3f22e6a818643e009fc8b84754fddd605290f03938670f9f605a5351a
BLAKE2b-256 checksum
How to use checksums
47519d8b9786945104e5834bae97b3aeac205ca03fc742921625f1c0397b0818
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Gladiator 0.6.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page