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
Close
Hashes for google_re2-0.2.20210801-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80640ae77e62b8619347308bc15becbc0252a6d4e494c9aa202818432e9d60af |
|
MD5 | b1a9689a08fc8fa699b0a48cff62310d |
|
BLAKE2b-256 | efb867a24ec404eaa999f8be950285b2cc505191b2b3926de8d24250c50daa1e |
Close
Hashes for google_re2-0.2.20210801-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58350b1431d24b5ee5cc8604498043e3e5f53e0c6ca103ea2432ac54cd89774 |
|
MD5 | aebe6bf52d30447226024699b0c2c442 |
|
BLAKE2b-256 | 05bf4202c0ca4b833ccd1e117e72b133bc5f62c15607b0eea1aee757ac4679db |
Close
Hashes for google_re2-0.2.20210801-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9376cc4d87aa4c39fb3c88918ece0aa1d8861f7631a5340a4fd46cd0790b71da |
|
MD5 | 38b5aa0ede1e65e52cbb178d400af43e |
|
BLAKE2b-256 | 1660fa9ec295898504971784d20171cc25c6a927608038bd2a3d16654b621d25 |
Close
Hashes for google_re2-0.2.20210801-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f469ece85e6e118cb29eee2f6e2d5b66eb47a2108cc1dc30a51732a41ab20233 |
|
MD5 | 00c3e1cbfa1c356cf0eee5de365754e5 |
|
BLAKE2b-256 | c7e4a0973791d9423259d4e8a380b42744ae1784da6d3ae71d83f02ce85175d6 |