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.3.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.3.0
File Size Uploaded Provenance Actions
nepattern-1.3.0.tar.gz 16.0 kB Without provenance Details for nepattern-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.7 kB

Release files / nepattern-1.3.0.tar.gz

Download URL nepattern-1.3.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c62e3883c5143375eece2c0df5f309deff40d21a3af4c5a638839aee8f085907
BLAKE2b-256 checksum
How to use checksums
36afb469b778bac0c26c219ebc930a5150267de094260cbf256d8c5219a59469
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.3.0-py3-none-any.whl

Download URL nepattern-1.3.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac410bd499057304ea8b3c4551c61c53658a997a4c0214e71b0e22286949efbb
BLAKE2b-256 checksum
How to use checksums
d256192f7e0c16c35184dd092850d7a91fbdf8bb0eaeaa224cd2ff649b770769
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.3.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.3.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