a complex pattern, support typing
Project description
NEPattern
NEPattern
(Not-Enough-Pattern
) 是一个高效的负责类型验证与类型转换的库,独立自 Alconna
简单实例
from nepattern import BasePattern
pat = BasePattern.of(int)
assert pat.validate(13).success
assert not pat(13.0) | bool
特点
- 高效的类型转化功能
- 多种预置的实例
- 良好的 typing 支持
Project details
Release history Release notifications | RSS feed
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.2.1.tar.gz
(10.3 kB
view hashes)
Built Distribution
nepattern-0.2.1-py3-none-any.whl
(12.3 kB
view hashes)
Close
Hashes for nepattern-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e600fee6895779444c6a8d003c9151043da60c9b7af6dc79326eb9e7d1ecc9e |
|
MD5 | 349d6c1fa342a4e5f5b2f7dc2306ae60 |
|
BLAKE2b-256 | 5eda4b5f0a329c03120d989c47d596cd8afbae9b03d39475f5f295bccbe4021b |