Skip to main content

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)

规划

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

Metadata

Release files for AgileP 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AgileP 1.0.0
File Size Uploaded Provenance
AgileP-1.0.0.tar.gz 6.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for AgileP 1.0.0
File Interpreter ABI Platform
AgileP-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / AgileP-1.0.0.tar.gz

Download URL AgileP-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0dc051a4d2613b73212c58dfb5e9ee4f56a32f1b1908a9d7438570f75cb866d3
BLAKE2b-256 checksum
How to use checksums
7ecb0390ad7e0b34289fb8873855c5c5c111565a851d2d20b0f554ec0bab470d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / AgileP-1.0.0-py3-none-any.whl

Download URL AgileP-1.0.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee27021528fca21582ff13969f947ff16d4b89a44e7486735b752a7c3501972f
BLAKE2b-256 checksum
How to use checksums
b77de613fe0302770f4274f068b4f248e864fa9506a05ed4a069b29ae0ab645f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for AgileP 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page