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

Uploaded Source

Built Distributions

File details

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

File metadata

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

File hashes

Hashes for google-re2-0.1.20210401.tar.gz
Algorithm Hash digest
SHA256 9565650d9b89b17b7bf5edd75bf749384d3f0201bcda68ca1783b0e9716efd66
MD5 bdb36b12e24833c8b2ca70147045e86a
BLAKE2b-256 156106982c620d243f8742a204dc733667c4e29ce359f55ce7cec0b17fd56a7a

See more details on using hashes here.

File details

Details for the file google_re2-0.1.20210401-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: google_re2-0.1.20210401-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 333.0 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for google_re2-0.1.20210401-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56bb93e7c6974cf5c3f8777111c357784c2d9af5c5e35f93bff90e95dc6a2b8e
MD5 2ab0cca6fed5fee837b8b18272936cfb
BLAKE2b-256 1df2346bead1de2eb821dd8427f1080df0ac8eccbd0db29c074d14cc6d42033c

See more details on using hashes here.

File details

Details for the file google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 332.8 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 00c7dd07316247312136d3e00f63c1ee7a07d29793cd725281bf07139ef7a042
MD5 77d50cb4cefbb2728ebcede560681eda
BLAKE2b-256 6a5184b41bbe6d6fa16cae63f6409c82e48715c456a4e10ccff51134aee2a8d1

See more details on using hashes here.

File details

Details for the file google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 335.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b62192371b94eed857a515298496bc49298b435ebcb06fc84c0516a07ae84535
MD5 b0897eb21ba5123ad2554873dc659884
BLAKE2b-256 bd53695df0e9ecd1d8e5bad642af31952829518f9e06e0acdb3e71f53f75444f

See more details on using hashes here.

File details

Details for the file google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 335.5 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a1b0cd6652923eec6217d9b680de068cfa498b9799ba797e469168d92feb7ff
MD5 3f254d136120e464886929bd74513e83
BLAKE2b-256 f694111a1d7af8b9a83adca246976f33697218272a2963128547c8ad186303c0

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