一个简单的Python数据验证库 - validus

2017-06-08      214      Python
项目简介

Validus

A dead simple Python data validation library.

Requirements

  • Python 3.3+

Installation

pip install validus

Usage

>>> import validus

>>> validus.isemail('someone@example.com')
True

List of Functions

isascii()
isprintascii()
isbase64()
isemail()
ishexadecimal()
isint()
isfloat()
isslug()
isuuid()
isuuid3()
isuuid4()
isuuid5()
isfullwidth()
ishalfwidth()
islatitude()
islongitude()
ismac()
ismd5()
ismongoid()
isiso8601()
isbytelen()
isipv4()
isipv6()
isip()
isport()
isdns()
isssn()
issemver()
ismultibyte()
isfilepath()
isdatauri()
isjson()
istime()
isurl()
iscrcard()
isisin()
isiban()
ishexcolor()
isrgbcolor()
isphone()
isisbn()
isisbn10()
isisbn13()