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
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.2.0.tar.gz (432.6 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.0-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

pyrematch-1.2.0-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.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (764.7 kB view details)

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

pyrematch-1.2.0-cp314-cp314-macosx_11_0_arm64.whl (464.1 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

pyrematch-1.2.0-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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (764.0 kB view details)

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

pyrematch-1.2.0-cp313-cp313-macosx_11_0_arm64.whl (463.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pyrematch-1.2.0-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.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (764.1 kB view details)

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

pyrematch-1.2.0-cp312-cp312-macosx_11_0_arm64.whl (463.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

pyrematch-1.2.0-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.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (763.9 kB view details)

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

pyrematch-1.2.0-cp311-cp311-macosx_11_0_arm64.whl (464.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

pyrematch-1.2.0-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.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (761.7 kB view details)

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

pyrematch-1.2.0-cp310-cp310-macosx_11_0_arm64.whl (463.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

pyrematch-1.2.0-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.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (761.8 kB view details)

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

pyrematch-1.2.0-cp39-cp39-macosx_11_0_arm64.whl (463.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pyrematch-1.2.0.tar.gz
  • Upload date:
  • Size: 432.6 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.0.tar.gz
Algorithm Hash digest
SHA256 f1c16019897b77c59e7e603693d1238b2c7339e1f364a9afb5fad7e7044ffb14
MD5 c4fd1f5c54431a52b15a240b760c58eb
BLAKE2b-256 47a4f120ba5f11f897f97f0d2fcfffc1e8d25bcc4af56bc20d71387b4ac5bd98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 41f37d2a8e170f6d1f8326c1232c8a8998bc0d18f9f79250d7d05b76af01f1e1
MD5 af187c1a869b7c58660f7139a454aab5
BLAKE2b-256 374203a251db47bd2561e78e4a9b938393e25333d74e7e33a88243580afa7f5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6780e2a6186c1d934e46886873fc9069127d8596ef7dd2413cb1424393d060ff
MD5 2239270ce827c86655d4a6aff1379b09
BLAKE2b-256 aea4db69048ab6ddea7dda7258e792a38c3632d87bd2302f82bf632a365342b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 38043aba40657f33f4e8160e463ee334822e3447f6d8cc51ac8f42d483c39214
MD5 0f123ffb794bd5cb8dc539991370f49a
BLAKE2b-256 caf2033fe5ee86d5c0ee029d4aeffe42103014bf000dc5f161646065637ad92c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b156d89a827a5ef51ed8c78cd72aa8710e069c123786811cec164ec60e26d5f7
MD5 86c4eb3b42a3232ffcff25a5b006c4cd
BLAKE2b-256 979155c21bb6e416db6b046d8b3bfd66893c57028b050d2937cd7e3f40ea0d02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 30be711fada8ef71c20563923148971b65fa2dbc9c42eb208deb07d0d836934c
MD5 cde7a3d1b6284de96afd7bb404edb4a5
BLAKE2b-256 ebc1437bc4e96a09790956bd2dbfee3af72275d0e49bafefdbcf9b07c54c0114

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 802dc5d8b80d9945e0b58dd3834118d3420bada3ccf0eb643a91f452b366befe
MD5 370b0eccf137553432ad3487bdbc500a
BLAKE2b-256 658d47c872ce44174648aaafe0bd0a15def00832cae193cd7ad6c1140c933dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0f056197bd440fbafa6aa79b608bae2c042d4b4789a9a47a5263eb1050178ad2
MD5 20ba0f8f832d5f647dac4bc8b127a7d4
BLAKE2b-256 6fa17f073fb9e67859668fb258ef12df91083c0d320242a0723ff0de65b48e69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6ca287e400a1c853bf42eb5de3cf6b0e9f3c50aafe18bc0b8de0ae914a36d46
MD5 88d14b4bfb18a80d93a1d4d009bcc271
BLAKE2b-256 eab9556f1c774f843a9f1daf2069b5b55c60a16883f5ed0b13600b01bc5b2617

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 88018d205fd8eab5b5207121c49a12e4d89163cb49de1cfb5e668918333c087e
MD5 3be42489205143b079e600b2421dd768
BLAKE2b-256 df39c8c4697b9f7c26713d6d9eb66a225a62b7b840851e3ca559164fbb75cc5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c73c2d5e925894c412704de45fa581887f86452a33c7ba7ba99291bd27b04be2
MD5 907687f36dfee028b36070a11602b747
BLAKE2b-256 3fe55a0f09fd5c9b18c4993a321a38ff8192889e48c9435bed0fd09b294216f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee0ae2c10548ad3a2f8c2b00e5ffe301ad78c7902fe5ae4b697906bd91f7900c
MD5 423702f730392e5fcab22415e7674420
BLAKE2b-256 e6e15257e4f4dd449b06997bd9d98c0cf8f9144979b6a2ea4fa3c17609b7bd28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36a078d35e220d315af76861e18d05b0de231fefd152857f27e46e6a74aafa96
MD5 c1a947faae3659151aede98dd44481ff
BLAKE2b-256 590afd368dc35349b1d7c1f202c621a74df43b85693dc4a2e33559f6c464f32f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2abbf0b04375e5dfef24b8dc701265151fced3db006ea38f321a9bdf9b175764
MD5 ec27e21635aa76af0e7a83c4031efc92
BLAKE2b-256 7cfb370a0e8cf366bc8d2ff2277441b36ec7c983fa8c29f55b77d5a482acd2bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f301ced3b24a031807d33e9f409439a7ea729a62b2c38706dc51a8bcf3f9f7c2
MD5 b4d7250cf7a562f3758a0bc10ea69840
BLAKE2b-256 6cda065e0d5083447589448cc1a4a15226548a4af20d3e8ddffc13c452c7fcf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8fbcbc7e5c7282016d76c517cd26a01cab46ecfa4bfe764859ed8555e1431753
MD5 a3599fef578e54973485a381a159ade8
BLAKE2b-256 ee4bb5d5d109d20e4ba9f58a48829713988d8a22f62124695238b33596f53638

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 794f4155846bc3f931f2a1054649a1c4deb944ba56c35de9daf6290ba18a0905
MD5 411f6ad661fa999a71b25bff30b79ef5
BLAKE2b-256 9734de28658a0a3f70eddfe2977f816b01a5a1c605030b0f81c18d06cca66d08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4ff55a7346de7bc24a08813cce6a42f7fc38e76d3c007ec0bff92b391653e91
MD5 2708482393608f7a8e2ff314ba331773
BLAKE2b-256 990958c0a5d6f656ef176701972f5f7c33bbf2e739c66d1b53e43d6c0d04af3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bf7ef60286726840da8879ae3aa53f85e98a1b768a4cdff49bf0cac28d673e9d
MD5 110825ba7eb10a0efc8b6f086885b291
BLAKE2b-256 10e789930253a67f7230e9a9742d958b2410fb4e6d38c04f54a31bb77fc3caef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94f0714a146929b5e9ef9a9489d4528358f23283e929162fa61e2c10f773ae8a
MD5 413db26f397ca45b176c0baddd1a6341
BLAKE2b-256 b97be4ec83626904730662e3c46f0e2e0c3fb9829d4e36944b2f0f2f8d2cf066

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3669ba604a36d606cc4bbc018bf7628e1ac917ad800c6f09a34621574e9c279
MD5 77c4ccbe6fe32f3361f2876b3ec6522e
BLAKE2b-256 6e172a7485284726c19d514978ae76d3c3979a07926a317737330a1e4f18ef2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.2.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fdec91c1969fa540fa0d647d4502fbdd9baf73c2b8494975e6db0d511d310726
MD5 8613ee715478c942e76ccd84a4972015
BLAKE2b-256 292bbccebe4d6ce902dd51cf1c5bb78463896dca3a108dc29b779506b3816df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7489c1f9082dd1fdf945843e72427794f330bfbd84ed6adffa0fc89944f449a1
MD5 4ee57837f32d919c8a48c5fe4de5294d
BLAKE2b-256 7f8ea4abae46602251dec7bbe4dea4f1aaeb838c719852510bafee63d35e06d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cbd829564da98e482c55bbcddc25fea4ab56d85dd2cf18882594ac13d5ac19e5
MD5 57fb75158e4b43c51551a055d2776f8f
BLAKE2b-256 c39975fd76e88cdd862474d204fb0a195d6f449cd5031e9840aefe150d8fe60d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f4cbcd2026a42c034034d7a9720537108c76cfc5dde2b7ab575ea6ccf54ac6c
MD5 e3373c82216a366590f93fb4951900d3
BLAKE2b-256 0678832415dc99d60ed34dd92eadb311c465ed47dee956eedc4e6512bc1439d5

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