Skip to main content

Python parametric check tools

Project description

AgileP

简介

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)

规划

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

Project details


Download files

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

Source Distribution

AgileP-1.0.0.dev1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

AgileP-1.0.0.dev1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file AgileP-1.0.0.dev1.tar.gz.

File metadata

  • Download URL: AgileP-1.0.0.dev1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.2

File hashes

Hashes for AgileP-1.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 77e2ab028fa679efc5feee5fe0014430cea5ecaf2da79c388344740b749da56c
MD5 b40bff25b4df74a5dedc4e564b1d9c3b
BLAKE2b-256 cf7db11a0192bdf6f91344223a32d4db3c36d529dc0bf4c43d9a21a4ad450a00

See more details on using hashes here.

File details

Details for the file AgileP-1.0.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: AgileP-1.0.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.2

File hashes

Hashes for AgileP-1.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e0708cb90b74e46dc0b82af061119e031555159249862681a72f49206674ed3
MD5 6f7e7bf16bba5c98de24265a64e35f1f
BLAKE2b-256 306ac389f5edf4bca9fe5056e6806a7a25515591b1269bb8c15629cc98045eaf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page