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.8.tar.gz
(21.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nepattern-0.7.8-py3-none-any.whl
(26.1 kB
view details)
File details
Details for the file nepattern-0.7.8.tar.gz.
File metadata
- Download URL: nepattern-0.7.8.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e20440be72a500ed7d57f28d010ac3654ae691c189b757f1ae01e33b3df57b
|
|
| MD5 |
7c553d95938697a9169b02ad06dc660c
|
|
| BLAKE2b-256 |
06221c6443bdb0b8d121ef66e011d7b3826e119e68c89b41c1ebc8651b773cb6
|
File details
Details for the file nepattern-0.7.8-py3-none-any.whl.
File metadata
- Download URL: nepattern-0.7.8-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59fe29954b2bf8661ebca089a90977d7ca743cd6a696f4c829f97efe6fe59004
|
|
| MD5 |
1a47d052dd3edad5387fde835a8c8aae
|
|
| BLAKE2b-256 |
73399dccdc7d9a3d9966b9502122b381efda198d6de36a9c508c48a28986202b
|