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.7.6.tar.gz
(21.2 kB
view hashes)
Built Distribution
nepattern-0.7.6-py3-none-any.whl
(25.8 kB
view hashes)
Close
Hashes for nepattern-0.7.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 233d0befecc190f228ded3651a85faaf53f1308bba40ab8ddec379d0d3c88051 |
|
MD5 | bac7d7f85905e467e8376c9516506a5b |
|
BLAKE2b-256 | 7238377892699d65fcd204e15de986c2d8039d17cbba8d6fa1fcb37316a5b90d |