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 13.0 >> pat
特点
- 高效的类型转化功能
- 多种预置的实例
- 良好的 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.4.2.tar.gz
(12.0 kB
view hashes)
Built Distribution
nepattern-0.4.2-py3-none-any.whl
(14.0 kB
view hashes)
Close
Hashes for nepattern-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427520c2ee475dcd7b9f852673b0a26f5396cb4742a65526a636e8d0917defea |
|
MD5 | 1a0676a86852c6c7b1bece57fc918dc0 |
|
BLAKE2b-256 | 8f644cba8d82eeedaa7b58ddd819de317d82b7a70c1764b6ef9474ec7f3f3ea2 |