Skip to main content

NEPattern

Licence PyPI PyPI - Python Version codecov

NEPattern (Not-Enough-Pattern) 是一个高效的负责类型验证与类型转换的库,独立自 Alconna

简单实例

from nepattern import Pattern


pat = Pattern(str).accept(int).convert(lambda _, x: str(x))
assert pat.execute(13).success
assert pat.execute(42).value() == '42'
assert not pat << 13.0

特点

  • 高效的类型转化功能
  • 多种预置的实例
  • 良好的 typing 支持
  • 自由的环境控制

Metadata

Release files for nepattern 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nepattern 1.2.0
File Size Uploaded Provenance Actions
nepattern-1.2.0.tar.gz 16.0 kB Without provenance Details for nepattern-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nepattern 1.2.0
File Interpreter ABI Platform Actions
nepattern-1.2.0-py3-none-any.whl Python 3 none any Details for nepattern-1.2.0-py3-none-any.whl

Total release size: 35.9 kB

Release files / nepattern-1.2.0.tar.gz

Download URL nepattern-1.2.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
960c024c93392e47e3919319fa225ec2a6ec0ef7a1c78c08838d80a902079ecc
BLAKE2b-256 checksum
How to use checksums
8b8e5eab7c283792871b33a873f2eed51c7993a54d1c267098002878a0ef0e82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.28.0 CPython/3.11.7 Windows/10

Release files / nepattern-1.2.0-py3-none-any.whl

Download URL nepattern-1.2.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac4e6589a11370e8980891642e35228aa123cb73d037c3973d8d3bcab052a0f9
BLAKE2b-256 checksum
How to use checksums
8fd0e52929b1d8736dd225edc9de0bf1bbe5d28696e5a6a6783fe0ca7a576e63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.28.0 CPython/3.11.7 Windows/10

Security for nepattern 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page