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

Uploaded Source

Built Distributions

google_re2-0.2.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (334.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (334.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

google_re2-0.2.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (336.6 kB view details)

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

google_re2-0.2.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (336.5 kB view details)

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

File details

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

File metadata

  • Download URL: google-re2-0.2.20210601.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for google-re2-0.2.20210601.tar.gz
Algorithm Hash digest
SHA256 69c0df6e8c3c87d059595921f78968c24533d10e62d34e133d1ebe7c3809ea51
MD5 9f762e096b33290fb31daaa643df80ee
BLAKE2b-256 5ab7c9f058d5183801323fcce9b654c3344e60be0f3b118666ef7012d8bfa4df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55042e6460fbd471b7422ea17cbefe635e368e0bd9f1094ebb330294a51058ef
MD5 e4d41148dc18722c25aee15b149ab9e3
BLAKE2b-256 63da8089bd6eb9992c9321137854ebd2b21800d8b7f1757f22a7176072288ea8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210601-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 44fc2a6d009234a6d1aec78735352dfb4bc3ab1eeb210680b55e2b190cb1202e
MD5 c91629bcb9314bd81d6a801ca8c04383
BLAKE2b-256 f5b4f3bbbbf5bdae4b18743b636057183fb61f2855a993cd63c5e1194dd16c94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fa91f3fe73cea9887c4d6a450c98a87c74142bb56de3ae0bc6c098e0d221687
MD5 77af30f33fcad0dbcbe4723a145cb811
BLAKE2b-256 c809bb8d5de72df08c73eda773f78069a4709c5b0acf7d5d55f7b691ac8cdc8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_re2-0.2.20210601-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a50435384c4e7f4f6d177be84aa238ce2d7fb8da76586f76933761dc2c90d96
MD5 e1fb51d91209bf6f41c8431587b912c2
BLAKE2b-256 ef6abe3964360bd36cf4d006e69c67ffe3ba8ffca6b8fcfb877a888cdff16f07

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