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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for validr-0.12.1.tar.gz
Algorithm Hash digest
SHA256 060918c7cb8a0d10beab40f97e5299ee0690ec7e4b348280bd14a43b635b3c5b
MD5 10eac41835a279438aa5b8488befc743
BLAKE2b-256 e4c3371b784e40087f497022c57ab6b7e2e97174db57f8c7c5157c2dd21bcc59

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