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.20210901-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 028bb86b1612cbd7947e7493a92f1dc33c8b95b31a57017c392811650b62bf5d |
|
MD5 | 46ad6fe2381dade0f2b9b9391e845f30 |
|
BLAKE2b-256 | acb4d4a3a96116f3363940cd8eeccfd1bc310838564f3cf989b875b0122ac2d3 |
Close
Hashes for google_re2-0.2.20210901-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10020ad49a6217534c5b82543ca4ee56c3317981afb68a8c737c212f222564f5 |
|
MD5 | 243203de7e350a3654def7952e760704 |
|
BLAKE2b-256 | 543ed728112f45bd525c322a237224654463b489ee815b723f5a212646598a94 |
Close
Hashes for google_re2-0.2.20210901-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542b9b18f01d06375ffab6a0e2ed809e3de7ddedde3382b6d24a98aced57c7a5 |
|
MD5 | 7e81c0b815b82db2497dc7e3e84c9038 |
|
BLAKE2b-256 | 9dc834ba345003b300a4afe4ebc675c199b8b8ce31cd6e11b208c5a82d9746a4 |
Close
Hashes for google_re2-0.2.20210901-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1175c7e5b5ad12462279184099b7b95f72b25fab4d141289224c7a3ffdc4a06 |
|
MD5 | f16afaedc7ab3fbf875524ee086fc8c8 |
|
BLAKE2b-256 | b457ffaf6738361f1a32a456e6f66b1d505acbfab1792d75ae222eae1989fa69 |