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

Uploaded Source

Built Distributions

google_re2-0.2.20210901-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (341.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20210901-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (340.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20210901-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.6 kB view details)

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

google_re2-0.2.20210901-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (342.4 kB view details)

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

File details

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

File metadata

  • Download URL: google-re2-0.2.20210901.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for google-re2-0.2.20210901.tar.gz
Algorithm Hash digest
SHA256 676fa9ee54e3fb70f290526fc0f4d78d1e5a4add701b5547494eaf7c68c72247
MD5 3af26fa3ad7724427db164f3fe2991b5
BLAKE2b-256 9d39941d59de62cb56f86dac46992f6bde083242a0b1d5d9bc42dd4c4b3f6584

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210901-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 028bb86b1612cbd7947e7493a92f1dc33c8b95b31a57017c392811650b62bf5d
MD5 46ad6fe2381dade0f2b9b9391e845f30
BLAKE2b-256 acb4d4a3a96116f3363940cd8eeccfd1bc310838564f3cf989b875b0122ac2d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210901-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10020ad49a6217534c5b82543ca4ee56c3317981afb68a8c737c212f222564f5
MD5 243203de7e350a3654def7952e760704
BLAKE2b-256 543ed728112f45bd525c322a237224654463b489ee815b723f5a212646598a94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210901-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 542b9b18f01d06375ffab6a0e2ed809e3de7ddedde3382b6d24a98aced57c7a5
MD5 7e81c0b815b82db2497dc7e3e84c9038
BLAKE2b-256 9dc834ba345003b300a4afe4ebc675c199b8b8ce31cd6e11b208c5a82d9746a4

See more details on using hashes here.

File details

Details for the file google_re2-0.2.20210901-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for google_re2-0.2.20210901-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1175c7e5b5ad12462279184099b7b95f72b25fab4d141289224c7a3ffdc4a06
MD5 f16afaedc7ab3fbf875524ee086fc8c8
BLAKE2b-256 b457ffaf6738361f1a32a456e6f66b1d505acbfab1792d75ae222eae1989fa69

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