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

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()

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:一个简单的Python数据验证库 – validus