Skip to main content

a complex pattern, support typing

Project description

NEPattern

Licence PyPI PyPI - Python Version codecov

NEPattern (Not-Enough-Pattern) 是一个高效的负责类型验证与类型转换的库,独立自 Alconna

简单实例

from nepattern import BasePattern


pat = BasePattern.of(int)
assert pat.validate(13).success
assert not 13.0 >> pat

特点

  • 高效的类型转化功能
  • 多种预置的实例
  • 良好的 typing 支持
  • 自由的环境控制

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

nepattern-0.7.7.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

nepattern-0.7.7-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file nepattern-0.7.7.tar.gz.

File metadata

  • Download URL: nepattern-0.7.7.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10

File hashes

Hashes for nepattern-0.7.7.tar.gz
Algorithm Hash digest
SHA256 6667f888457e78937998f9412eb70ad16d220464d2d77850dd2b05e9ecfb3207
MD5 3c6ffb77a55c50278c7dc15560673229
BLAKE2b-256 35366b551ad46d6d90341c059aade07cdaf7754838fa870da2631c1d0dd53bad

See more details on using hashes here.

File details

Details for the file nepattern-0.7.7-py3-none-any.whl.

File metadata

  • Download URL: nepattern-0.7.7-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10

File hashes

Hashes for nepattern-0.7.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2d66f964333f42df7971390da4fb98dfed1e8b769236f305c28a83c0bcda849a
MD5 1990f413c1b72eea644f740e31e4151b
BLAKE2b-256 1174d2ea0ed5eed9efb00e54ae2f2cb67878e64ed997cfcdc616b88d9213b373

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