Skip to main content

RE2 Python bindings

Project description

A drop-in replacement for the re module.

It uses RE2 under the hood, of course, so various PCRE features
(e.g. backreferences, look-around assertions) are not supported.

Known differences between this API and the re module's API:

* The error class does not provide any error information as attributes.
* The Options class replaces the re module's flags with RE2's options as
gettable/settable properties. Please see re2.h for their documentation.
* The pattern string and the input string do not have to be the same type.
Any str will be encoded to UTF-8.
* The pattern string cannot be str if the options specify Latin-1 encoding.

Known issues with regard to building the C++ extension:

* Building requires RE2 to be installed on your system.
On Debian, for example, install the libre2-dev package.
* Building requires pybind11 to be installed on your system OR venv.
On Debian, for example, install the pybind11-dev package.
For a venv, install the pybind11 package from PyPI.
* Building on macOS has not been tested yet and will possibly fail.
* Building on Windows has not been tested yet and will probably fail.


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

google-re2-0.2.20220201.tar.gz (8.7 kB view details)

Uploaded Source

Built Distributions

google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_x86_64.whl (344.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_aarch64.whl (320.5 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ ARM64

google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (346.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (325.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_x86_64.whl (344.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_aarch64.whl (320.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ ARM64

google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (346.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (326.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_x86_64.whl (343.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_aarch64.whl (320.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ ARM64

google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (346.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (325.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_x86_64.whl (345.3 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_aarch64.whl (321.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.24+ ARM64

google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (348.2 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (328.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

File details

Details for the file google-re2-0.2.20220201.tar.gz.

File metadata

  • Download URL: google-re2-0.2.20220201.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google-re2-0.2.20220201.tar.gz
Algorithm Hash digest
SHA256 1fc78c0b574cfbdba4b9120de2e596b3ba11b90d2da46682c1a0a5d2da7e944f
MD5 d370ee65026d54eea156ac9338d28dd0
BLAKE2b-256 f26ef3ef6336a46c7d285df0d0360621257a8f6ee45daeca30f5a52ed3962550

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 344.0 kB
  • Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 3172e3730101dc9a5e5dff8738f5c42e2eedf0f243d2856d903c96e69ddb24b9
MD5 d23e6c9b411c90edf642f099322aa6d6
BLAKE2b-256 84078a16fb509f2ad7d2f338ec46d935c5238469d15275c103ad42648c96215e

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 320.5 kB
  • Tags: CPython 3.10, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 83ac5ee8242f8a6d4c29d62e98dc1432ab54a59f2a349f7a884f67cea48378fe
MD5 20b9620191e1931e951f1c7adb504161
BLAKE2b-256 02fbf7b36f8a81ccfc6b41145d283081aee1a78b1db53d2491d26ecc53f3400d

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fcab62797ab2ae5a20ada3a4c71df0a7dca869f78c34bf49eed3498e4784e59
MD5 cbfa6caec6bc1060e350e5eccaa11991
BLAKE2b-256 f95e9433f25570d314d31dd860665857f2403ecb02170ebefff667a136529e02

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fdcce822d4239e9a3ac4c8e21b677e7a092cc80ce2f09ed92f3f838920382a0d
MD5 efc8b9ee794a053a8d20d0d87d56f526
BLAKE2b-256 a7bb42049c0d7801ac57f60288f5a442d953ca06fb56d089b9e7ec3a92825283

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 344.1 kB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 cf24a669d5b90e9a42e0c27de91ef005af85bbc66b23b20a124c5510f9df3c11
MD5 0ddc63a036ff6e552b8642c31a99caf7
BLAKE2b-256 a052145943df44fac9e0c4cc3d59d461fa7ce03e5392fb66df11594d725d9fbf

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 320.6 kB
  • Tags: CPython 3.9, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 1df65183fbfe8b8470bf310207a14ceb6ba64bc002e2048e7c3ecb1c362a179e
MD5 5749b378c45fe247199c8cdd01fe3a1d
BLAKE2b-256 d307ff25cce4cb75186d31938cdc3ef6ff41de64e1844bad775b5c0969c489fa

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df28205fcb9f27876fecc037d085228b81c875a83605cb78c51d992650b53157
MD5 afec499abbb37a01feb8c64754634c94
BLAKE2b-256 485e47a350866e47e5d2b2b291338712fcb542323f863721b77292cd5ca73598

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 415d0d2805c5c174b369011ab441a961f5c174fe94416f28115be0e24560ad18
MD5 528bab4174a71c18aa1aa424affa5753
BLAKE2b-256 f8c7e6ad5648a4f2f4a2ec1520e4384a5bbc4b007b062a63d3858cc7eee2264b

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 343.7 kB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 c969569bd3a8396ae251992e79e8eaf3ae5d7facbfddccd7ee7450fdc0e768a3
MD5 9cc7d2aa1d530a8da5faf62e8738f800
BLAKE2b-256 8af60629ebf3820144e9254041bd14409c29649309d940bfda8dd8518b41cb63

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 320.4 kB
  • Tags: CPython 3.8, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 04df248f009a9610a5dc79f272f0eb4fbd7c20f23a2a325022f5b53811a044f6
MD5 9fffcc198479fe8713bd2f7f22c61e6c
BLAKE2b-256 5bd2e2db02fefc4ddbbfa90b7928f15d6cc25b167c2610cbb8995b3820fb9b29

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 43e716df8d842e1926bc629b6534bdaee784b2cfe6848417193ae3f4aeb5de01
MD5 40e441d24beb013eabe277cdc569f6a1
BLAKE2b-256 85c778022988857ed91459eaf2d1d05f780b3d70a68f59e035b7fd0939cc20a4

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cbadd832aa4dd2c510c5d3fa1e3f431686a3da0e39b26da1d98a214e43ae88b8
MD5 90a4cc02b23b3e3de298364d9789a54e
BLAKE2b-256 2d39cfea83f4d82bb6e989c433f485bfaaa4b51fcb42073b58287cab7cf02f42

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_x86_64.whl
  • Upload date:
  • Size: 345.3 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 a07fa73850731e719b58258f927a90a0fa8f77d38dbe2ede03ff8febff93cde9
MD5 7174fb0907a506572a93cd7d6b488e01
BLAKE2b-256 a9fa32e8dc9511af9607e9eb726bead19def41a7cd8d42e9850eae14f9c08d91

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 321.7 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 e509126192689d688041efe614b8d8967184ed6972cb39d323e1c924db819679
MD5 eb6b4cc11da0fb0b77fe88e2f2229890
BLAKE2b-256 4dd9be654c2865d889ba22da66778406d6c15a0237dec77ed5dc1df44ab1438f

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ee8cf9c028189f479fbad6954b760bf4a62b008ae49495f2dc2e74a1f069e17
MD5 05e7148b7651c11cc2cad31a1b3be1c0
BLAKE2b-256 298e8871bd6ae6d38eb43f1e10a5ca2496e0c19d8f4d76cab8f63936841fa865

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f72ae7c4f0b23f93ae1b47529a292e75d7f4dddc5eefabbf073df104e62f6a7a
MD5 68fa2db3a8fca70a4d7d2233939e8697
BLAKE2b-256 fe5f1e01a0c8ae5ba7b932eb53685db077f128fc262650c540c8b785dba21829

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