Skip to main content

Welcome to RegEx4Seq

CI Documentation Status

This is a python library that implements regular-expression based pattern matches for sequences of arbitrary objects. For example you can write pattern to determine if a list is a sequence of alternating 1's and 0's like this:

from regex4seq import Item, Items

# The core is a repetition of alternating 0s and 1s. But we need to
# account for the pattern starting on a 1 or finishing on a zero.
# Analogous to the regex /1?[01]*0?/.
pattern = Item(1).optional() & Items(0, 1).repeat() & Item(0).optional()

pattern.matches( [1, 0, 1, 0, 1, 0, 1])
# True

pattern.matches( [1, 0, 1, 0, 1, 0, 0])
# False

To learn more about the library, go to the documentation page on ReadTheDocs.

Metadata

Release files for regex4seq 2.0.1

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

Source distribution (sdist)

Source distribution for regex4seq 2.0.1
File Size Uploaded Provenance Actions
regex4seq-2.0.1.tar.gz 58.4 kB Without provenance Details for regex4seq-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 67.2 kB

Release files / regex4seq-2.0.1.tar.gz

Download URL regex4seq-2.0.1.tar.gz
Size 58.4 kB
Tags Source
SHA-256 checksum
How to use checksums
13dcba7c7386882474b2f1bb5a19ade2269d5635b8604ddeb7bddc567e011c76
BLAKE2b-256 checksum
How to use checksums
b43efcd7e6de1dde70704e0fe9969b421c0f9bd3a90016b376128deb947b3e19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / regex4seq-2.0.1-py3-none-any.whl

Download URL regex4seq-2.0.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44381a0aec17c306525d7ee4ce085923b106528d6b7bc2d66a45cf9485982194
BLAKE2b-256 checksum
How to use checksums
3edc80772345d63176fdb692e7b4a841fa03b5910e8895be1b48064a31d5db6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for regex4seq 2.0.1

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.

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