Pygnuregex, GNU regex for Python
Pygnuregex is a Python package for the GNU interface of regex functions in <regex.h>. The GNU interface provides a wide range of different syntaxes for the regex compiler. This package requires GNU libc to work properly; prefer the sdist if you're worried about ABI compatibility.
Example
import pygnuregex
# Search for the first match
p = pygnuregex.compile(b"f\\(oo\\)[0-9]+")
result = p.search(b"hello foo123!") # ==> 6
p.span() # ==> [(6, 12), (7, 9)]
# All matches
p = pygnuregex.compile(b"\\(foo\\|bar\\)[0-9]+")
list(p.finditer(b"hello foo123 and bar456!"))
# ==> [[(6, 12), (6, 9)],[(17, 23), (17, 20)]]
The SyntaxFlag enum contains all the available syntax options that may be set in pygnuregex.compile().
Metadata
Release files for pygnuregex 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygnuregex-1.1.5.tar.gz | 18.8 kB | Without provenance | Details for pygnuregex-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygnuregex-1.1.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl | Python 3 | none | Linux glibc 2.5+ x86-64 | Details for pygnuregex-1.1.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
Total release size: 40.4 kB
Release files / pygnuregex-1.1.5.tar.gz
| Download URL | pygnuregex-1.1.5.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2703c6e740d5af3faf6b3f2a9988d7079f4ccce3c52aca3252d8675158d0acd4
|
|
BLAKE2b-256 checksum How to use checksums |
74c8952c5dea8168705b8e73a2d17aaa9d7b2bb1979b6af7f5463fde82ab3681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / pygnuregex-1.1.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | pygnuregex-1.1.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Linux glibc 2.5+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
6e0d15f6776da521e35ad4871eba96e75a0c176473135d558ea016d2e127e843
|
|
BLAKE2b-256 checksum How to use checksums |
fe51967360e10ec51497b754bcd10259c986fb5519a848f7fb96bf5a7c647c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for pygnuregex 1.1.5
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.