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 Text (unicode in Python 2, str in Python 3) will be encoded to UTF-8.
* The pattern string cannot be Text 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.1.20210601.tar.gz (9.1 kB view details)

Uploaded Source

Built Distributions

google_re2-0.1.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (333.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

google_re2-0.1.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (333.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

google_re2-0.1.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (336.1 kB view details)

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

google_re2-0.1.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (336.0 kB view details)

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

File details

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

File metadata

  • Download URL: google-re2-0.1.20210601.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.4

File hashes

Hashes for google-re2-0.1.20210601.tar.gz
Algorithm Hash digest
SHA256 e1c4fffa79fc8d9ef0ea088f95b00d2e6310df3c83059b41445a9fe44aa238b8
MD5 af8d716700c72231a5ddadb61b8f3a59
BLAKE2b-256 1bb37caa93e52124e458e41070d0df2e390969d2ef8babbe2b48990c67a7cdb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.1.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e683a715a3390dfa0a53bcf93c2d1122ef277672a2191d429cfb023f49bce8ff
MD5 450315e10bbb164875792a2b6c8c0fcb
BLAKE2b-256 01b0e9c2da4cefc46ea8d9d22a588583973ce69c8a230a058a02fc43e375e81a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.1.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9383cf421af4ffae595191c6f8c6d8fab61b453c148884b55b3c30f628557bf1
MD5 94db6aa1b2481b8e15727f59dcdb4f6d
BLAKE2b-256 9f5a7067b29fe6fd02bbf2ac6cc5f0c57182bd4dd2c0c1248cd9e054d22c8fcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.1.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d0e01bdfbbce47a2e247d8220fc53c4f949861ba4aa63ebea79d9d0d27740621
MD5 af782578dcb7a2ec0fa8acc70285c3b2
BLAKE2b-256 e235130fc2fc37ba1a53ef709aa8f697af313c959ee5113d89cd4bcabdd6b998

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.1.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef2441937586bbd8b4da0db6367d5847fec6db3cd08f51d1617088537ef3a80d
MD5 d950e788965947f49ce43a933abb0a48
BLAKE2b-256 be72ec649f13d372e573cb19732389d21eed6aa9b81c9b7e5c5ade782a18ead6

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