Skip to main content

Python parametric check tools

Project description



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, "")


  • [x] 去除字段类型中的名称
  • [x] 支持更多类型
  • [ ] 支持更多参数传入方式
  • [ ] 更新优化错误提示

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for AgileP, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size AgileP-1.0.0-py3-none-any.whl (7.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size AgileP-1.0.0.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page