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.5.11.tar.gz
(13.5 kB
view hashes)
Built Distribution
nepattern-0.5.11-py3-none-any.whl
(16.8 kB
view hashes)
Close
Hashes for nepattern-0.5.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4490f9c85a86922a7be6d50f4569632e4af2724163322e1488434199edcca25 |
|
MD5 | bde1bd35e4d535c27a4d652720129d50 |
|
BLAKE2b-256 | 13d5f6b2d6d508776363e1e37adaedce8cf9284f4938ca6f28bd3fcfa9ce0220 |