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 pat(13.0) | bool
特点
- 高效的类型转化功能
- 多种预置的实例
- 良好的 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.2.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
nepattern-0.2.0-py3-none-any.whl
(12.2 kB
view hashes)
Close
Hashes for nepattern-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d9443fdf62ca723716dcbb241c2e96fead3184b0ac83abe510581ab8ed0c69 |
|
MD5 | 9c2692c8bddb069185893d5632d9cc2e |
|
BLAKE2b-256 | 325e20cede29fd552b8ffb21a61ce73d050d4711782c15e2cff205e0ef5c5bad |