Skip to main content

A simple,fast,extensible python library for data validation.

Project description

Overview:

from validr import SchemaParser

sp = SchemaParser()
validate = sp.parse({
    "id?int": "product ID",
    "name?str": "product name",
    "price?float&min=0&exmin": "product price",
    "tags": ["&minlen=1&unique", "str&desc="product tag""]
})
data = validate({
    "id": 1,
    "name": "TeaCup",
    "price": 9.9,
    "tags": ["Cup"]
})
print(data)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

validr-0.13.0.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file validr-0.13.0.tar.gz.

File metadata

  • Download URL: validr-0.13.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for validr-0.13.0.tar.gz
Algorithm Hash digest
SHA256 ba8d1dacdcd6a17bdfbe92e015e29bff3430b03dcb4def070321d343d6d8c1cf
MD5 2e50a4d7e66fa4561df6f137bb867114
BLAKE2b-256 c1088c776abbec6d64b8dfe6bdf727cbc16b7259a46ca096d33caab66f6b43c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page