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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nepattern-0.7.8-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nepattern-0.7.8.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10

File hashes

Hashes for nepattern-0.7.8.tar.gz
Algorithm Hash digest
SHA256 a2e20440be72a500ed7d57f28d010ac3654ae691c189b757f1ae01e33b3df57b
MD5 7c553d95938697a9169b02ad06dc660c
BLAKE2b-256 06221c6443bdb0b8d121ef66e011d7b3826e119e68c89b41c1ebc8651b773cb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nepattern-0.7.8-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10

File hashes

Hashes for nepattern-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 59fe29954b2bf8661ebca089a90977d7ca743cd6a696f4c829f97efe6fe59004
MD5 1a47d052dd3edad5387fde835a8c8aae
BLAKE2b-256 73399dccdc7d9a3d9966b9502122b381efda198d6de36a9c508c48a28986202b

See more details on using hashes here.

Supported by

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