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.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: AgileP-1.0.0.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.tar.gz
Algorithm Hash digest
SHA256 0dc051a4d2613b73212c58dfb5e9ee4f56a32f1b1908a9d7438570f75cb866d3
MD5 e4de35f98155a10dda210bfdab4b3e53
BLAKE2b-256 7ecb0390ad7e0b34289fb8873855c5c5c111565a851d2d20b0f554ec0bab470d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AgileP-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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-py3-none-any.whl
Algorithm Hash digest
SHA256 ee27021528fca21582ff13969f947ff16d4b89a44e7486735b752a7c3501972f
MD5 928c4e0400eb8910131051501abe5f43
BLAKE2b-256 b77de613fe0302770f4274f068b4f248e864fa9506a05ed4a069b29ae0ab645f

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