Current collected state Current
Observed since 21 Oct, 09:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python parametric check tools
AgileP 是一个灵活的参数校验工具,支持绝大多数参数校验。
pip install
from AgileP.central import Agp
from AgileP.model.extension import SizedString, UnsignedInteger, UnsignedFloat, Email, Bool
class Params(Agp):
"""
定义数据校验类
"""
name = SizedString(size=8)
age = UnsignedInteger(min=100)
salary = UnsignedFloat(max=10000)
admin = Bool()
email = Email()
params = Params("zhang", 100, 9800.1, True, "1234567@qq.com")
print(params.values)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 28 Jun 2019 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0adba54806a7e4935a84d7164c37469ac6c2bcdca46c09b4e39dc6a9c8821a1d