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.
See https://github.com/google/re2/wiki/Syntax for the canonical
reference, but known syntactic "gotchas" relative to Python are:
* PCRE supports \Z and \z; RE2 supports \z; Python supports \z,
but calls it \Z. You must rewrite \Z to \z in pattern strings.
Known differences between this module's 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.20220401-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd41d067cd40ffa78fc6851141311b08e5d9c33d423e5419f0789f8f898039e3 |
|
MD5 | 4584d819728744ddd6b80ebcf107eb56 |
|
BLAKE2b-256 | 33be9707691238b3cac145dd0a8bc2b65075807ac8f1324eb06f96c0559f18a5 |
Close
Hashes for google_re2-0.2.20220401-cp310-cp310-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa542e8a4b88840f233b4dc0a85967dadf8cc5900a18ba314eefa7f92eb7e02 |
|
MD5 | 5f94bf4970ff82555191209ab95dba62 |
|
BLAKE2b-256 | 2b8627e40f358c0a81a7cfc5e91d7477b9ab8195bfc978e3361ac7d6f800eaf8 |
Close
Hashes for google_re2-0.2.20220401-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad00d4b9a5e2ae34bcd7138c599111d0727a7853777ff05398568a69eb843208 |
|
MD5 | 42566cadd6e6b07d94798eb30474f1bd |
|
BLAKE2b-256 | 306638adebff73e4007b22c0985efdb0f3864a94ea67d515d5c88259d5b226f7 |
Close
Hashes for google_re2-0.2.20220401-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ba3b406360e2c9317e4b8f58066461487a43bc7f9e5844d9899aa75f1d06c6 |
|
MD5 | 4ddf086a835302fd8bdae796d67c271f |
|
BLAKE2b-256 | 62bd0a342fbf546e68da8234832b9b7d99f47c6e0f67cf1651522ba97eed679f |
Close
Hashes for google_re2-0.2.20220401-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c48affac8f8455d87e61c884490f3cb5c34d32ba8bddacc26cd3aff3dff19a7 |
|
MD5 | 7177d00550cc9629ca79bb634bc11e6d |
|
BLAKE2b-256 | dd45e82cd54060999ef5f6bf7487d6006b8f0834d7b2ad389897b520ef85f595 |
Close
Hashes for google_re2-0.2.20220401-cp39-cp39-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a56540c5577a0a20f675748f14c9359c75e506ef65c453d18eec9f40527b79 |
|
MD5 | 5127bef1cc4fd74dd4c86fb0d5762d90 |
|
BLAKE2b-256 | 896b7f5b58fa45bf7149ce48c2a69ded4bb224c0a27004fcfa2118792eebdba3 |
Close
Hashes for google_re2-0.2.20220401-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f720181266ffe13a0ba0a5fe4889dbad414761da2de42a4754ca583e188bad5e |
|
MD5 | 6d581911529b755827a0401c20e3bf78 |
|
BLAKE2b-256 | be94a771879787ff25a6092e5638acb537b6899c36e6d1465ccbfd58ff5903b8 |
Close
Hashes for google_re2-0.2.20220401-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9310d428b93db3e155c87ccf0e5ecb14324a3d7310cbb6d5cb33eb4e02a16ef7 |
|
MD5 | 055c8a05302917378e9a036ebf3b9094 |
|
BLAKE2b-256 | c4d0aa89bb4a8a57addd22cb24b30b2d4a94b7af129ec590c3b84a5f1e0f8911 |
Close
Hashes for google_re2-0.2.20220401-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca878e5532273564a113340b02da1ade3410dea14230729c127792c2216f53fa |
|
MD5 | 47dca0f96b1cab50dd16ded340aff5f5 |
|
BLAKE2b-256 | f857259d7c722928aeab3e644bbe416af6822e92c3b0c03162c5d49a2f3f4f1f |
Close
Hashes for google_re2-0.2.20220401-cp38-cp38-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0646590d4dcd8061628606ad72782b67eeb75ab97e6c004d678b92427430b678 |
|
MD5 | 2e4406a54afa2f24c3f0c7e865fedb7b |
|
BLAKE2b-256 | c8eea7f0be183b74b5ec0dd48c0f1652894ab8fe938819931025648a978827ac |
Close
Hashes for google_re2-0.2.20220401-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd53e0478e3b84599723c18491cbbbd08bf159262f4491101ba3dab4ebe7e95b |
|
MD5 | 312eb945eb26ea8f184c1c31a32d39eb |
|
BLAKE2b-256 | 255fcc08bb4d7d5cd65cc5b87063d189c1dcfedef555af5661c95a9ff2f3b81b |
Close
Hashes for google_re2-0.2.20220401-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1faed7ce2173161d8d9e9f5e956b3b0e9c7490664b8cb6737874c11cdac77239 |
|
MD5 | b50edde40f6b7a4fc8d1bef0ce1f936a |
|
BLAKE2b-256 | eb26c856bd08ed62f2f31b486abbdf8c806bb278015882fd65d71c739727e195 |
Close
Hashes for google_re2-0.2.20220401-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4efeaac4260bfbc8dd9f469cfb3aff353cbb58e531ecfccad7d6963e330464b |
|
MD5 | 82e80809eebec848a2f888181e19b1bc |
|
BLAKE2b-256 | 2027e258f8520d02208cf147c7c1d1e797580ddc04a4e6436b95063cc99bd525 |
Close
Hashes for google_re2-0.2.20220401-cp37-cp37m-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6906ff810245e1617f0a096cb2d575bb52067acb3ad430529c52f923754781f |
|
MD5 | 121436dac1a7b272287b26067341025b |
|
BLAKE2b-256 | f847cb87bc484e8e0a5ce1cee7986c83e3263bb51e7eedd63eacfa4593a8ac0e |
Close
Hashes for google_re2-0.2.20220401-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 475695b08018228d88fa8bc5372384f55c4ac412b37530773bda8caa8e543aed |
|
MD5 | fa754d8588249e523279926d1aad6b2c |
|
BLAKE2b-256 | be302bca35b14685e577d307c313828755d11586c79bc7013c63fcfd1de11af3 |
Close
Hashes for google_re2-0.2.20220401-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 244f467bade9ec4b6c7409761c54ccb029d44bd64519f354289a2291e7d4acbc |
|
MD5 | bc38960661a450aa269a566068653b23 |
|
BLAKE2b-256 | a49b41f4f9df30b17ddb7a8ef0ff62517236694564d0a69c5c5dacc248ce71e3 |