Skip to content

Latest commit

 

History

History
229 lines (138 loc) · 2.48 KB

validators.rst

File metadata and controls

229 lines (138 loc) · 2.48 KB

Validator Reference

Using Validators

validator_collection.validators


Core

dict

dict

json

json

string

string

iterable

iterable

none

none

not_empty

not_empty

uuid

uuid

variable_name

variable_name


Date / Time

date

date

datetime

datetime

time

time

timezone

timezone

timedelta

timedelta


Numbers

Note

Because Python's None <python:None> is implemented as an integer value, numeric validators do not check "falsiness". Doing so would find false positives if value were set to 0.

Instead, all numeric validators explicitly check for the Python global singleton None <python:None>.

numeric

numeric

integer

integer

float

float

fraction

fraction

decimal

decimal


bytesIO

bytesIO

stringIO

stringIO

path

path

path_exists

path_exists

file_exists

file_exists

directory_exists

directory_exists

readable

readable

writeable

writeable

executable

executable


email

email

url

url

domain

domain

ip_address

ip_address

ipv4

ipv4

ipv6

ipv6

mac_address

mac_address

mimetype

mimetype