Skip to main content

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

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
pip install .

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.1.3.tar.gz (426.7 kB view details)

Uploaded Source

Built Distributions

pyrematch-1.1.3-cp312-cp312-win_amd64.whl (970.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

pyrematch-1.1.3-cp312-cp312-win32.whl (806.4 kB view details)

Uploaded CPython 3.12 Windows x86

pyrematch-1.1.3-cp312-cp312-musllinux_1_1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

pyrematch-1.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (721.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyrematch-1.1.3-cp312-cp312-macosx_10_14_x86_64.whl (491.1 kB view details)

Uploaded CPython 3.12 macOS 10.14+ x86-64

pyrematch-1.1.3-cp311-cp311-win_amd64.whl (971.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

pyrematch-1.1.3-cp311-cp311-win32.whl (808.6 kB view details)

Uploaded CPython 3.11 Windows x86

pyrematch-1.1.3-cp311-cp311-musllinux_1_1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyrematch-1.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (721.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyrematch-1.1.3-cp311-cp311-macosx_10_14_x86_64.whl (489.8 kB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

pyrematch-1.1.3-cp310-cp310-win_amd64.whl (970.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyrematch-1.1.3-cp310-cp310-win32.whl (807.9 kB view details)

Uploaded CPython 3.10 Windows x86

pyrematch-1.1.3-cp310-cp310-musllinux_1_1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyrematch-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (718.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyrematch-1.1.3-cp310-cp310-macosx_10_14_x86_64.whl (488.2 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

pyrematch-1.1.3-cp39-cp39-win_amd64.whl (967.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyrematch-1.1.3-cp39-cp39-win32.whl (808.1 kB view details)

Uploaded CPython 3.9 Windows x86

pyrematch-1.1.3-cp39-cp39-musllinux_1_1_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyrematch-1.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (719.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyrematch-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl (488.3 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: pyrematch-1.1.3.tar.gz
  • Upload date:
  • Size: 426.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3.tar.gz
Algorithm Hash digest
SHA256 5f20acf057ec5df55dc02442cfc578c2ad5aa9a00a8cfcf00a648a2a839701eb
MD5 6d1f275e0f5b56d7eab03ec315e3a407
BLAKE2b-256 c37f128129da8fd6bffc9076412dbb58aa1c0ffdb91fc41f3c47933766a489e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9cfb79c15ab07f704f6c082ad6798aa1d99faf3542cfc8255f761475b82807bd
MD5 ef77f7493109992f1fe7d58e7172c147
BLAKE2b-256 1f44e068d6c8f8ee6e34c34e8a89cc8bef3e183f0f84c149a6f32dc9035092ed

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp312-cp312-win32.whl.

File metadata

  • Download URL: pyrematch-1.1.3-cp312-cp312-win32.whl
  • Upload date:
  • Size: 806.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8eaa1fc3a0f5c7b07f9761da1ebe49181d7c12b27a08671756219880a74e000
MD5 5ada188465a9014a6b7d6a89f3369740
BLAKE2b-256 a3ddc499beb178625002e8cd4d8a3a5d5ab11930232974f7902f04e5da2b97bb

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c7bd305254e34fcefe0fe20a69fb70c721afb65485ffba85ad805ee3472e0518
MD5 a4c43ce32205b62d26792720dc11ef75
BLAKE2b-256 3d64bbe726f237b2416cc4981016cff342ead8589aae46be25cc9863a1150ffe

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 683bf5c798a264b4de1eddd317b0bef679ad4db0b4dee39c5b691d6665fc45c2
MD5 e663904e9eb27fd3dfa9673dd36719db
BLAKE2b-256 325576c244363946e21de41ff4327110691eef82395f93af0c95879daf048a77

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp312-cp312-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 79981f26469e9b59ffaec02935e972168d8a371e46d725fb54ad0743b7e8bc7b
MD5 1e278e1457f5973439217079fc1f6317
BLAKE2b-256 22103ad685ba9d739324ba9a5247ff0a3aedc298e059cdfcfd89e60c51a4fd3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 84ce17ee83a40589b9442435d2c53e8db2398561e7d067de90d6c0be9abaa3b7
MD5 099ee1bdeecb264b262e94218202199b
BLAKE2b-256 65951e4e0b839615f3878b646051c4f72c98a82b155744602591cdacbebb01e3

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp311-cp311-win32.whl.

File metadata

  • Download URL: pyrematch-1.1.3-cp311-cp311-win32.whl
  • Upload date:
  • Size: 808.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d23b07aa52fd60aea8511a79fdb8f88b063c75a5c1961d56281e9778dbb98deb
MD5 92f8a5f13201f53fb0b0e84d631c203c
BLAKE2b-256 7bf8d29c5920681b0066c43e9461791855ce6679f70cf3b1213619c289b32337

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d514800d66ec34b48093ee3dd5cd9a6f8704b92b2c7c26da79b52cfb821217b2
MD5 945b19bc63e828ab7c4d75371596a0c7
BLAKE2b-256 1443743bf04f7b4cc692ffd6eab86a8687bfe754e32a08d2e4a5e61cac1d2f35

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e62b603eb5ea33d8f84f3d0c57951a1d2317329d95ce2975d432ac726ecebd23
MD5 db818911a426e6ccac0f95dcf3aed346
BLAKE2b-256 cc443e366c9834a8bea2365b6678bd6857e3bb42ad9e36a36db0909845ddc32a

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3052b4fc538cf4054cf3eeec148896590a8f43f22132ea42d13fa4f7da94b4fd
MD5 6e619a9dfddca49610568d2fd197d129
BLAKE2b-256 5ee9a5aaff2ed67de383f97d0a83a759405ae060b64bb5d5e97c12b91d9ad86a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2ca48ce97ef406cb3eb522245ff027c724036612871ea114654ea7e0fa2aaf9
MD5 2029812df7ec5462bcf17d2c2ab7e1fb
BLAKE2b-256 4bee466e4effb2c8361c44f3cf42bad9319f871fc806c17ba51b141be1e91022

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp310-cp310-win32.whl.

File metadata

  • Download URL: pyrematch-1.1.3-cp310-cp310-win32.whl
  • Upload date:
  • Size: 807.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c99ca74b233ec361ca6eefff55d8de96759acdc956d4cebb61dd8998cb4c86f3
MD5 0397d4222d25badbf76e415d01ef591b
BLAKE2b-256 ce99591d0bbabcbc4c3b4001d67d0eed43c5add894cb2b69cba329a038c1a275

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ef4fb0a1238aca1795c4b9096548c0b9267003afc0bb937136005f0de1cb7365
MD5 4552268f13d8cd72556b6a9842ec0af2
BLAKE2b-256 86ebbb3197e5509c3cf52fcba3110b43840d93909634972938e3ec7dceb08b0e

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 423632cf934ba43ba560c644b9c1a08642d030782497c818029b1cebd5cf7ff3
MD5 e2efbdf401627858de8dd24e022dcdde
BLAKE2b-256 b8d2cada6fb91c89d4b1b6e2cf07da56d35b5e9febc00388c6a871bf18177b9c

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4070404662b74517ef735004614235d449010f76a4846cf80cbe11416527fc77
MD5 1f6347a2129df3b0e922db839d8cfcfd
BLAKE2b-256 98bb43004c2f83a323de83cf2461882d65c93c6f380ffb56def812287f8a5962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 967.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4f90285428939800175eec214d47fd0c50f8566f78a8ebe3c97190411cd49e37
MD5 ba73e234a67e6e2b21d72f00110a48bb
BLAKE2b-256 0020b8e9fd2618381b46bece02785fb244a7a55fd31c610eda5b3a90f727f2a1

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp39-cp39-win32.whl.

File metadata

  • Download URL: pyrematch-1.1.3-cp39-cp39-win32.whl
  • Upload date:
  • Size: 808.1 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyrematch-1.1.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 db9fd95cf60db3f1dd4ee7b2c9b6dfcd3a0377dc1187a6545bda2affebfbc44a
MD5 74a2ffbf1ed7d25a75ff9857663780d6
BLAKE2b-256 7184dda939783ef3cb079fb315f742b74e1a5e82aa4b715ddf930477316dc6ed

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4ddec7dd91f1e5abc3aad8ef5887e6d22297338ba1e32902d1052fa140b2ef28
MD5 4c37bf814167ef94097a0b230ad27332
BLAKE2b-256 099278a5b9a5bad2edb202d93ae134145602936c808955921af4cfccfa339308

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8941cbda0859b42dfbd25ab31112d96c528dd81f3a3359e8aa7bfb3cced1128b
MD5 c292a646c6c2a88d6e91ec2a7055d4bb
BLAKE2b-256 e38f9d197dbdd03fc1dfacb3daf075aef38ca4318b6d5d938b31ea7bea2db6d0

See more details on using hashes here.

File details

Details for the file pyrematch-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyrematch-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2ac97a516457fa4653009351f3cdc825eeafc491fcaa3dec3aeaba722ef9ca13
MD5 23b26e2b616a85ea99b6eb6300730296
BLAKE2b-256 fdec679c4d499e7231c416caeb8742372981936e9834c57d62a99ebb48c64267

See more details on using hashes here.

Supported by

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