justcode.ikeepstudying.com
Python:Python数据验证库 – validus, python 数据验证, python 判断数据类型, python verification - Just Code
Validus A dead simple Python data validation library. 项目地址:https://github.com/shopnilsazal/validus/ 环境要求 Python 3.3+ 安装 pip install validus 用法 >>> import validus as check >>> check.isemail('someone@example.com') True >>> check.isascii('1234abcDEF') True >>> check.isascii('foobar') False >>> check.isint('-2147483648') True >>> check.isint('123.123') False 可用函数 isascii isprintascii isnonempty isbase64 isemail ishexadecimal ishexcolor isrgbcolor isint isfloat isslug isuuid …