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.12.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for validr-0.12.0.tar.gz
Algorithm Hash digest
SHA256 6eb0d14638f7d85d3558676823fb57d86bd457cdc9c4b90c359dacf72a32bb67
MD5 ec3591611eb13c7fce4ab058d80be9b7
BLAKE2b-256 35f8e45e8581959fc626adaa48aaf007dbc920f8150aeaf580cc53178f47486b

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