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.7.tar.gz
(21.0 kB
view details)
Built Distribution
nepattern-0.7.7-py3-none-any.whl
(26.0 kB
view details)
File details
Details for the file nepattern-0.7.7.tar.gz
.
File metadata
- Download URL: nepattern-0.7.7.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6667f888457e78937998f9412eb70ad16d220464d2d77850dd2b05e9ecfb3207 |
|
MD5 | 3c6ffb77a55c50278c7dc15560673229 |
|
BLAKE2b-256 | 35366b551ad46d6d90341c059aade07cdaf7754838fa870da2631c1d0dd53bad |
File details
Details for the file nepattern-0.7.7-py3-none-any.whl
.
File metadata
- Download URL: nepattern-0.7.7-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.1 CPython/3.9.13 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d66f964333f42df7971390da4fb98dfed1e8b769236f305c28a83c0bcda849a |
|
MD5 | 1990f413c1b72eea644f740e31e4151b |
|
BLAKE2b-256 | 1174d2ea0ed5eed9efb00e54ae2f2cb67878e64ed997cfcdc616b88d9213b373 |