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.2.tar.gz
(20.2 kB
view hashes)
Built Distribution
nepattern-0.7.2-py3-none-any.whl
(24.2 kB
view hashes)
Close
Hashes for nepattern-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75406623a4a533628a6fb1996a7cc79d7b535a268e2a8bf4b405197175baecca |
|
MD5 | 2fe46ea0288b7a5fb47168356288fae1 |
|
BLAKE2b-256 | a823e5dee6527a9bf0ed5be4d3be96e88ca33eddde18ae4abea00b0155bef6d2 |