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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file google-re2-0.2.20210801.tar.gz
.
File metadata
- Download URL: google-re2-0.2.20210801.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0806d78691e67970b3761767a30f1c631fed85b87001266c6adcb672ac2c9beb |
|
MD5 | 916c8d1168f5897823c1ca059dc886c2 |
|
BLAKE2b-256 | 5c00fc37c04116f8c51438c5575ee8ef1309e7b9c8c6a55e192c6d91988b9341 |
File details
Details for the file google_re2-0.2.20210801-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20210801-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 336.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80640ae77e62b8619347308bc15becbc0252a6d4e494c9aa202818432e9d60af |
|
MD5 | b1a9689a08fc8fa699b0a48cff62310d |
|
BLAKE2b-256 | efb867a24ec404eaa999f8be950285b2cc505191b2b3926de8d24250c50daa1e |
File details
Details for the file google_re2-0.2.20210801-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20210801-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 336.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58350b1431d24b5ee5cc8604498043e3e5f53e0c6ca103ea2432ac54cd89774 |
|
MD5 | aebe6bf52d30447226024699b0c2c442 |
|
BLAKE2b-256 | 05bf4202c0ca4b833ccd1e117e72b133bc5f62c15607b0eea1aee757ac4679db |
File details
Details for the file google_re2-0.2.20210801-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20210801-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 337.8 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9376cc4d87aa4c39fb3c88918ece0aa1d8861f7631a5340a4fd46cd0790b71da |
|
MD5 | 38b5aa0ede1e65e52cbb178d400af43e |
|
BLAKE2b-256 | 1660fa9ec295898504971784d20171cc25c6a927608038bd2a3d16654b621d25 |
File details
Details for the file google_re2-0.2.20210801-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20210801-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 337.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f469ece85e6e118cb29eee2f6e2d5b66eb47a2108cc1dc30a51732a41ab20233 |
|
MD5 | 00c3e1cbfa1c356cf0eee5de365754e5 |
|
BLAKE2b-256 | c7e4a0973791d9423259d4e8a380b42744ae1784da6d3ae71d83f02ce85175d6 |