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.4.1.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

nepattern-0.4.1-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

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