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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 Windows x86

pyrematch-1.1.4-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.4-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.4-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.4-cp311-cp311-win_amd64.whl (971.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

pyrematch-1.1.4-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.4-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.4-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.4-cp310-cp310-win_amd64.whl (970.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

pyrematch-1.1.4-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.4-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.4-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.4-cp39-cp39-win_amd64.whl (967.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

pyrematch-1.1.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: pyrematch-1.1.4.tar.gz
  • Upload date:
  • Size: 426.8 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.4.tar.gz
Algorithm Hash digest
SHA256 f31ae5604436f0282fcbe75183c43d1eaf807453c562bfa96224e2e6133b59e9
MD5 268ab192e898ff0991846bc1c3bb53f5
BLAKE2b-256 ac7c11fef2404e9d19ec982fb4e7bac80f380cdd03caa239d727814ea8be868f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f81feaf33f7dfabd325dfbb3c620c71fd066cdda16db57e3a3500fe90c16c198
MD5 44d8eef874cedac54f1e230ed8dab3ad
BLAKE2b-256 43eec589c5f2ab1cb2e0d30b1c5cececa27903e933234108a64b5ceb4b9b9172

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.4-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.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 586d64b85efb81c45a7fc809de1e17b853d34f1fc2cc0bae5dafd4958d06cbd2
MD5 6da16fde67508679697362022173cbb2
BLAKE2b-256 820e5bfcf9e7d62f60e162b19469f32ba543fcac0422116b34f0d5d1df3dbf83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0c84b3ae097bad2fa43658fa8716177c9f7e46efdb98e8b052f51199d7b40bc2
MD5 374b9c08a010de4ffe6697158c3f1580
BLAKE2b-256 b877cf670e248374c209b2f2b2d74de07f81f517f8d08ae0a589cf45eff9606e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad9cd1a9c54fefbd5051354ee377fef6802e27375e10775de397133836f48be6
MD5 43fa09832d6860efa6499b74465eb907
BLAKE2b-256 9e9c60c4ef02229e15cd8d1500fbc6c7bc38db5868178d6234c91cf368a69fff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 650fda77a54d11e8df709421361f2b6b585d61fc7b0803133c3f8757c965a22a
MD5 ce1678ccc34d983d023bdf4a070130c0
BLAKE2b-256 2676892ebb83cecf1847c8e0a6a779004410fa54822d0a0ac2d72bb1975fcfe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e7f12eea52212ef0d53441f206f2cb3d17a90a92923f963dcce143c9ef1ed33e
MD5 a5f9e814c1c4321f81664ab30c6dce8f
BLAKE2b-256 b31933cbbc3559d8b7948c5cff86f73c273186439a5746f1c3bba199e0adf647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.4-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.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 62b9ed3a9ad97edfbdd280da6281ba17ee3bc1eedf57e6c60b913e5e1620e22d
MD5 b6eb4fa3d29801efffdc3d5ef19e075c
BLAKE2b-256 4359e23ce655af4203c29e7616b5cc5d0650af5c08b33bf467e1acb4fa03d4cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 158da59dac4edefc92104eee7d0b1c07785d0488ed726556e275670f03ed2f08
MD5 843896992d78bac9d147265635db0cf3
BLAKE2b-256 68a6b605098e6de3c7fb30a60586c63777d81905e8cb6f992176b4bb64ebbc0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0b350d9d01116d7573b8ae2b540c92aa1e0aa031168934ad0826d46e178796e
MD5 8c33af1718efd65e7f507f349e03472d
BLAKE2b-256 f376e6f4b41e5aa26b124115ffe8466c84f0fe3335362c814a642d28cb106575

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 190b0d71ae47f8cba008bc9fc918fe85a05620271af049fe27833ece86c97862
MD5 2a6af1661a64cbed9b32f3a6b51cf96f
BLAKE2b-256 0c79e368a05f8f6cf67f10d54046e7baf948af3860e6ea358a29bde7d631175e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 edb80e9711dd562e515c467e71396b7c5dca4d9b9e98ff0c10dd45270ca6c437
MD5 2f4ebd123d1e224d837c957469c088e8
BLAKE2b-256 f4732ad488a98540aafc8a62c50669d11f98384b6b12e41b907cff8101654831

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.4-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.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4d34db41e3f1de9ac1dc9d759b5047b03d1be3cbadc765e41bca2fb45cb536a4
MD5 4a4811cc02454c55648a004a9ee7a764
BLAKE2b-256 15b55f6afc911ef56211f1c4302a1df667e86955fdc668c9b26dfb929ac593d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 1709f924379457fb02804926f227afb7c81035e3d3bddb0fbee5faf36f294103
MD5 e758718d6940e7b74af1a271e9ce1cc9
BLAKE2b-256 317b8ee261726a8fb209eb23404ecf13d452a9c2b3ae12a1f09c19a5d36bf8fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b7b29ed68cc377049468a59e4d151dcc4d1227188f424aac89bb1780a59e72b
MD5 31517af6f68d89083a44c7d0b63dc60b
BLAKE2b-256 f001f3f174dd9d6b4e254cf604f64b1963fdbd9593a58d0d41ed53722413b5c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d921a01f3304185c694fdeb9444c5954d0ebfe05a4383194d90d51926ce0c2af
MD5 c09eb2fa9e6baba606cd9be63a00d99a
BLAKE2b-256 f39ceb9d690c743f4df90948fee677fc8ffe7ddaaaad46bf8ee603c6e94b62a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.4-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.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b5e14b3cf5a9bf751db434a5d5f88b0cb2414c0613929d32320c4c0c3e82c388
MD5 c23a7cfc19af40b681297780e76583e3
BLAKE2b-256 1124189919b627d2bbe424ae7e9945f9683c40d4d9b5b07d4e2651ca6153ba54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrematch-1.1.4-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.4-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c56b7a1c4fd34313c2c87834679ce09c9619b1f7547f36ede3c3265ba2afd9d3
MD5 a6bac798ce014b883b99f0a6b9a5c945
BLAKE2b-256 1b6dcf9dd0ad2b86a0d79b3fb13e7a56d26c24217d8a6d5432a2b4f555ccffbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 91d2f5838103c143b235b1c8caf4f58150fea848e0afdd65362327d16ce7b1f5
MD5 7309fe7a9effaf559f62cbe7e2302580
BLAKE2b-256 127cf7f1769fa427a6b48074c88701d5c398d9980260ca290ce93ba7a68e04f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b74af7b82cd30b8cd0d5d6ea3dfa44f51cdcefc1e5d74b80f3a1e6402cc8ba4
MD5 d95e20ef3970b4cde258a5573bd3b9a6
BLAKE2b-256 d994f8def74049af33fdbb38f6f061dcc0eea4c37f461d408fd68dc2951132ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyrematch-1.1.4-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a3554bdf8c6d18933caf5e019d20ba9c72e2c7b21c2869661f5588eca1a32d51
MD5 5c69a35392597b969f6466b36e0810c0
BLAKE2b-256 6c1632456143d93352d9bce44f43e8f49029bdaa9c1886420999073640efe3f9

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