Skip to main content

Python bindings for REmatch, an information extraction focused regex library that uses constant delay algorithms

Project description

REmatch

PyREmatch: REmatch bindings for Python

Python bindings for REmatch, an information extraction focused regex library that uses constant delay algorithms.

Installation

You can install the latest release version from PyPI:

pip install pyrematch

Or you can build from the source code:

git clone git@github.com:REmatchChile/REmatch.git
cd REmatch
python3 -m build --sdist
python3 -m pip install dist/*.gz

Usage

Here is an example that prints all the matches using the finditer function.

import pyrematch as REmatch

# Define the document and the REQL pattern
document = "cperez@gmail.com\npvergara@ing.uc.cl\njuansoto@uc.cl"
pattern = r"@!domain{(\w+\.)+\w+}(\n|$)"

# Create a REQL query
query = REmatch.reql(pattern)

# Execute the query and print the results
for match in query.finditer(document):
    print(match)

The Query object contains also other useful methods. To get a single match, you can use:

query.findone(document)

To find all the matches, you can use:

query.findall(document)

To find a limited number of matches, you can use:

limit = 10
query.findmany(document, limit)

To check if a match exists, you can use:

query.check(document)

You can read more about this in the PyREmatch Tutorial.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrematch-1.2.1.tar.gz (434.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrematch-1.2.1-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

pyrematch-1.2.1-cp314-cp314-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (772.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp314-cp314-macosx_11_0_arm64.whl (467.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyrematch-1.2.1-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

pyrematch-1.2.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (771.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp313-cp313-macosx_11_0_arm64.whl (467.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyrematch-1.2.1-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

pyrematch-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (771.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp312-cp312-macosx_11_0_arm64.whl (467.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyrematch-1.2.1-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

pyrematch-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (771.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp311-cp311-macosx_11_0_arm64.whl (467.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyrematch-1.2.1-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10Windows x86-64

pyrematch-1.2.1-cp310-cp310-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (769.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp310-cp310-macosx_11_0_arm64.whl (466.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyrematch-1.2.1-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9Windows x86-64

pyrematch-1.2.1-cp39-cp39-musllinux_1_2_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

pyrematch-1.2.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (769.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pyrematch-1.2.1-cp39-cp39-macosx_11_0_arm64.whl (466.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file pyrematch-1.2.1.tar.gz.

File metadata

  • Download URL: pyrematch-1.2.1.tar.gz
  • Upload date:
  • Size: 434.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0c01018bb2f52c18aeddb43c3cd6190090501556d833a4a8e44a00f783bd0e23
MD5 b414a159c12e227b50e1a10495c13494
BLAKE2b-256 7d22ef6009f35cd59231fbfd07b76c1dd10a033fd14b06321b88ea360e8d9024

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 d967771e90ab8156432adb0041332504ee65eb346174a9edf20917a1eaebcb2b
MD5 ae1d28a2970ebd12bc901dde112ec50f
BLAKE2b-256 410d4a680a7f9aac409bbfdded2f46f8c5ad640ddee2ff577c66198bed2c6380

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a0eabd2adbebe0c276434334850228056a9d8d0a229d0509e5b3b9d4e6eca752
MD5 cc73a26e780a1aa5eb99bae9f5150292
BLAKE2b-256 299700e272708cfa0599a481ec39f2689e22190e3164aa03eb8f43660dc80897

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3bccc56d8e8b9c03f7a58bb5ca344f0c6a9a60cf2b8f0f0678385f377754a809
MD5 0ff18d8b55f636591259da2189c67424
BLAKE2b-256 1ac474a90d275cbb689e389c08b679a53468dcf78eac5783e7bde2c3b1b48403

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79530989c75b37cd0e9963e8edb9a360133275ea250d0b4c354e6c7be6eea844
MD5 91d77b862abc89880d7602c455e91cb3
BLAKE2b-256 2b8e5318c2941bf499b8d76564dfaa6d33609712dffce6996b6c69e91f53ce25

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bead2d32cf78faf6974c1a595ac5cd2c276b952f8ab360fea2d92b4669143157
MD5 cdad7ee16bb29fd1300f19f66fa30365
BLAKE2b-256 83ccc8294863146f02d3c25032cf1f9c61894053d6e161c2b8740065d1fee534

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b8991c6774a7a8cf76dc2c723b3840996f8fcf48c18bac0d17e07c2af1e95960
MD5 e5eaa2c8bfa986277ba67dfda24db906
BLAKE2b-256 72333971454dc7da4ec79dafd70cd01bc40b9e82902e0df3925cb6bcec6df492

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a1dce2d483c4f8fd426972326d0838e2ca73d1414de686ca9dcf5f4d012acc6
MD5 ce1a21bd3b029735ebe7b173938a114d
BLAKE2b-256 253df1fb240e4ddea5825a51f806aace8f43404c314b0bedb1cb3eecbff490ba

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fae0687baca5a04f91b44d6d25a698799eeed2085cb2545d7d7cc1e5d5145a43
MD5 d8074b429acf5b2e429201cb21d354c1
BLAKE2b-256 d7583c4256fbc86cf3b43d3f91c11ba1d94bcb3d72930ae136892b84e70c2992

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e606a0c5105253cbf4d9181c4fceac6728da2506bc1eed05bb452b19ec4d4888
MD5 a6696de24844e9928891b059fd69fdb9
BLAKE2b-256 ad327d781dda599df02ff7adf28f4aeadab6184c042e2cb576f848eebb828d5e

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6bb9a7cf885330b276dd4e063c12c1f8c7932463ca390f4e6959dedb57a90d24
MD5 38b4ed8318c4637ebf15fccf504e1525
BLAKE2b-256 70b594cabeb96abd70f8f882ab82dcd1876deb6a6d48bda6ef37f0793b311e9a

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4470ff166bd62b780bd245f12be7d556d651a2f5c7834166aa18873dd41736a7
MD5 5f3168348445b9f0ed05762474032160
BLAKE2b-256 ce16cfe5c74e375a07ba603ff372cc8d4b80bdd54cde4d363e82d69e73a8c21b

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 135ec17f290505e778a63a3a5c3e887572f50d74392cd46c268520fbc204f2db
MD5 4dbd3247505c1b842cb002f6ee8d43d6
BLAKE2b-256 d9afebaaccd501b43488c55b95be716e89407d922dc7043fd6c7f5159e1ee71b

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fd1ab0d3294afe561e6e26318f4ce2405920bf4a26bf7226f6f7d528c9565060
MD5 fe1091206835ac565b32c0415cec3d42
BLAKE2b-256 eb7e479dc03d161c105faa58187a9f277683f53b17b7c161285c0d0cb61f44e4

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b268140880e21e0d5da235cbe907a40b6ac5f6eb6a94473f5e1f6b497ef246c6
MD5 26da2886363c4d57cdb42c30a43063d7
BLAKE2b-256 14f1e55494bdd179bc5c1fdb59be4dbe639ed20f52769b4e209d2dd8670b52eb

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd1023b4c6ddf7bbe76c560d99891b78edcd7d44357641b556ed391a10d5acbd
MD5 7f584324fdbc924c58e02c14487aa804
BLAKE2b-256 0796b15c23da6c89c2fc58f9794b89ae15bec601b0d9feb0f6bcac75ad66b304

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ea6eacba46d22431cda525c92ba071ed3d30338bb074d0007025f0fd25c2879
MD5 73de6ef53a8a4dc11837c83e5f0e07cc
BLAKE2b-256 7e14e0a6f7a934d4fc9d8e601668fc0d8beeb917dd3ab70769035497f49820a9

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b84468fc9a4b969742795641fade09eef33c0f3476d5f839d7bae000c16a390d
MD5 e2eac7171d7d052dd547ce98eccf24b2
BLAKE2b-256 515961b0eaad2c9c77b304b037f6ed69a248b4ca35f2ff76870af4c3f915c120

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 91469d081762b3b895ec50abb85fca5ca296d3b20da5150ea32116172d502cd6
MD5 1ca8f9ebe6643a741b8662cec748d1f3
BLAKE2b-256 9aaeb3353e047a512975b44adc5c0381c02c392d7477f398b23c5591e931031f

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26cf1df336e7b477d359a540d13c4970eab87ec606c5818746676daec3147dc3
MD5 98aa8f4ebc987ac5b534e23e533f9a44
BLAKE2b-256 5bc43c918668cd085b801a16c58a0f0cfda60cf173f504243a61d81224d5f550

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 804a7f5118c6a6500ee224f792c467c1dd4e3d82264700459f155a3de24a2093
MD5 e233945be51f6403ffa8bfe8b70d8efd
BLAKE2b-256 5df78c13368b4e8c9dec7a2ffd19dae607680a9e4dde8fd73558ceeacf47a413

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyrematch-1.2.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrematch-1.2.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b45e6182bb9d9d901194fb18309e103d0dd23b25d698ec160f0d17eb3d8657a8
MD5 913d070a9d34a190ded0cd798c0a3f9f
BLAKE2b-256 d4d40d79e0487028771f0880e9e82d65f01f91d01ff08f4323b2bb29c5b28f40

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8353721d00ceeb534bcb7c788b516f5e0e99d1efb6d35ac3de82af047bc6c10c
MD5 9675ccdf8c104883a093ae2fd4c2f3c3
BLAKE2b-256 be87b10db977be2439882d634d1b0087ba8d32b59287550dc319569581e447e4

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3aba82efced84d5b1d200211c63ac6fa5a5de111f9c550198e814a2670ae300f
MD5 5e47b8e44df6d5d442b74b726bed09d3
BLAKE2b-256 085e42f85cdb09fa99a70883743410625cd910f6a1530e7f408b2ca8fa13fc16

See more details on using hashes here.

File details

Details for the file pyrematch-1.2.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrematch-1.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ecde15b0179d2452c23bd7df6cfef5529e2c5a0ed5963cba8fd4c3cccfbc487
MD5 c0886b30695994d256d0fb8ad6f3f852
BLAKE2b-256 1ae0e246de05157fcf40cd0a30186a82dca3ab4c4166f03382e395fae1df1e25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page