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.20210601-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55042e6460fbd471b7422ea17cbefe635e368e0bd9f1094ebb330294a51058ef |
|
MD5 | e4d41148dc18722c25aee15b149ab9e3 |
|
BLAKE2b-256 | 63da8089bd6eb9992c9321137854ebd2b21800d8b7f1757f22a7176072288ea8 |
Close
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 |
Close
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 |
Close
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 |