Pattern matching utilities.
Project description
Pattern Utils
Pattern matching utilities.
Currently the only implemented matcher is for generators/iterators.
Example:
from patternlib import generator as gen
def example_generator():
yield "some resource"
return "done"
match gen.matcher(example_generator()):
case gen.Node(resource, gen.Empty(end_result)):
print(resource, end_result)
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
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
File details
Details for the file pattern_utils-0.1.0.tar.gz.
File metadata
- Download URL: pattern_utils-0.1.0.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0416b87e4e824c406f52a4ad912156d6fa32f727ae36b3b53c916fc6bd0eea98
|
|
| MD5 |
286cfea73e04e3ea0c9a1248dadeeeef
|
|
| BLAKE2b-256 |
cf24eace02929e9cb65a5b74b192cf6a68772f7350bf2ecc8cc2ab01cbb067d2
|
Provenance
The following attestation bundles were made for pattern_utils-0.1.0.tar.gz:
Publisher:
python-publish.yml on Jamie-Chang/pattern-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pattern_utils-0.1.0.tar.gz -
Subject digest:
0416b87e4e824c406f52a4ad912156d6fa32f727ae36b3b53c916fc6bd0eea98 - Sigstore transparency entry: 154079538
- Sigstore integration time:
-
Permalink:
Jamie-Chang/pattern-utils@e962954ac2dcc75550fea8a3b22e95f84c2bd79d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Jamie-Chang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e962954ac2dcc75550fea8a3b22e95f84c2bd79d -
Trigger Event:
release
-
Statement type:
File details
Details for the file pattern_utils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pattern_utils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625c0bba403fb02e18a4a509ffaab16f120831b9e4b5ea6afcd1ac5e65f74750
|
|
| MD5 |
4ac58ffb07872a61b543f46d337ed34f
|
|
| BLAKE2b-256 |
d41e5df58388c7cdfcb687e15962f58a38550a1799f9e9b305109f24f932a60f
|
Provenance
The following attestation bundles were made for pattern_utils-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on Jamie-Chang/pattern-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pattern_utils-0.1.0-py3-none-any.whl -
Subject digest:
625c0bba403fb02e18a4a509ffaab16f120831b9e4b5ea6afcd1ac5e65f74750 - Sigstore transparency entry: 154079539
- Sigstore integration time:
-
Permalink:
Jamie-Chang/pattern-utils@e962954ac2dcc75550fea8a3b22e95f84c2bd79d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Jamie-Chang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e962954ac2dcc75550fea8a3b22e95f84c2bd79d -
Trigger Event:
release
-
Statement type: