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.6.0.tar.gz
(15.9 kB
view hashes)
Built Distribution
nepattern-0.6.0-py3-none-any.whl
(20.4 kB
view hashes)
Close
Hashes for nepattern-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55776b4b109f3f9aa31da87c1ef3eab375368336f28cf018c6e01053ad9433ec |
|
MD5 | 89631b7f229c7ca0981c3e63663581fb |
|
BLAKE2b-256 | 34a0b4502b793cc2f7d7d7d55cd5895816efd1e810e1de7528ccd173b4c17d9e |