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
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.1.20210401-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bb93e7c6974cf5c3f8777111c357784c2d9af5c5e35f93bff90e95dc6a2b8e |
|
MD5 | 2ab0cca6fed5fee837b8b18272936cfb |
|
BLAKE2b-256 | 1df2346bead1de2eb821dd8427f1080df0ac8eccbd0db29c074d14cc6d42033c |
Close
Hashes for google_re2-0.1.20210401-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c7dd07316247312136d3e00f63c1ee7a07d29793cd725281bf07139ef7a042 |
|
MD5 | 77d50cb4cefbb2728ebcede560681eda |
|
BLAKE2b-256 | 6a5184b41bbe6d6fa16cae63f6409c82e48715c456a4e10ccff51134aee2a8d1 |
Close
Hashes for google_re2-0.1.20210401-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62192371b94eed857a515298496bc49298b435ebcb06fc84c0516a07ae84535 |
|
MD5 | b0897eb21ba5123ad2554873dc659884 |
|
BLAKE2b-256 | bd53695df0e9ecd1d8e5bad642af31952829518f9e06e0acdb3e71f53f75444f |
Close
Hashes for google_re2-0.1.20210401-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1b0cd6652923eec6217d9b680de068cfa498b9799ba797e469168d92feb7ff |
|
MD5 | 3f254d136120e464886929bd74513e83 |
|
BLAKE2b-256 | f694111a1d7af8b9a83adca246976f33697218272a2963128547c8ad186303c0 |