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.20220201-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3172e3730101dc9a5e5dff8738f5c42e2eedf0f243d2856d903c96e69ddb24b9 |
|
MD5 | d23e6c9b411c90edf642f099322aa6d6 |
|
BLAKE2b-256 | 84078a16fb509f2ad7d2f338ec46d935c5238469d15275c103ad42648c96215e |
Close
Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ac5ee8242f8a6d4c29d62e98dc1432ab54a59f2a349f7a884f67cea48378fe |
|
MD5 | 20b9620191e1931e951f1c7adb504161 |
|
BLAKE2b-256 | 02fbf7b36f8a81ccfc6b41145d283081aee1a78b1db53d2491d26ecc53f3400d |
Close
Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fcab62797ab2ae5a20ada3a4c71df0a7dca869f78c34bf49eed3498e4784e59 |
|
MD5 | cbfa6caec6bc1060e350e5eccaa11991 |
|
BLAKE2b-256 | f95e9433f25570d314d31dd860665857f2403ecb02170ebefff667a136529e02 |
Close
Hashes for google_re2-0.2.20220201-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdcce822d4239e9a3ac4c8e21b677e7a092cc80ce2f09ed92f3f838920382a0d |
|
MD5 | efc8b9ee794a053a8d20d0d87d56f526 |
|
BLAKE2b-256 | a7bb42049c0d7801ac57f60288f5a442d953ca06fb56d089b9e7ec3a92825283 |
Close
Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf24a669d5b90e9a42e0c27de91ef005af85bbc66b23b20a124c5510f9df3c11 |
|
MD5 | 0ddc63a036ff6e552b8642c31a99caf7 |
|
BLAKE2b-256 | a052145943df44fac9e0c4cc3d59d461fa7ce03e5392fb66df11594d725d9fbf |
Close
Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df65183fbfe8b8470bf310207a14ceb6ba64bc002e2048e7c3ecb1c362a179e |
|
MD5 | 5749b378c45fe247199c8cdd01fe3a1d |
|
BLAKE2b-256 | d307ff25cce4cb75186d31938cdc3ef6ff41de64e1844bad775b5c0969c489fa |
Close
Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df28205fcb9f27876fecc037d085228b81c875a83605cb78c51d992650b53157 |
|
MD5 | afec499abbb37a01feb8c64754634c94 |
|
BLAKE2b-256 | 485e47a350866e47e5d2b2b291338712fcb542323f863721b77292cd5ca73598 |
Close
Hashes for google_re2-0.2.20220201-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 415d0d2805c5c174b369011ab441a961f5c174fe94416f28115be0e24560ad18 |
|
MD5 | 528bab4174a71c18aa1aa424affa5753 |
|
BLAKE2b-256 | f8c7e6ad5648a4f2f4a2ec1520e4384a5bbc4b007b062a63d3858cc7eee2264b |
Close
Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c969569bd3a8396ae251992e79e8eaf3ae5d7facbfddccd7ee7450fdc0e768a3 |
|
MD5 | 9cc7d2aa1d530a8da5faf62e8738f800 |
|
BLAKE2b-256 | 8af60629ebf3820144e9254041bd14409c29649309d940bfda8dd8518b41cb63 |
Close
Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04df248f009a9610a5dc79f272f0eb4fbd7c20f23a2a325022f5b53811a044f6 |
|
MD5 | 9fffcc198479fe8713bd2f7f22c61e6c |
|
BLAKE2b-256 | 5bd2e2db02fefc4ddbbfa90b7928f15d6cc25b167c2610cbb8995b3820fb9b29 |
Close
Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e716df8d842e1926bc629b6534bdaee784b2cfe6848417193ae3f4aeb5de01 |
|
MD5 | 40e441d24beb013eabe277cdc569f6a1 |
|
BLAKE2b-256 | 85c778022988857ed91459eaf2d1d05f780b3d70a68f59e035b7fd0939cc20a4 |
Close
Hashes for google_re2-0.2.20220201-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbadd832aa4dd2c510c5d3fa1e3f431686a3da0e39b26da1d98a214e43ae88b8 |
|
MD5 | 90a4cc02b23b3e3de298364d9789a54e |
|
BLAKE2b-256 | 2d39cfea83f4d82bb6e989c433f485bfaaa4b51fcb42073b58287cab7cf02f42 |
Close
Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a07fa73850731e719b58258f927a90a0fa8f77d38dbe2ede03ff8febff93cde9 |
|
MD5 | 7174fb0907a506572a93cd7d6b488e01 |
|
BLAKE2b-256 | a9fa32e8dc9511af9607e9eb726bead19def41a7cd8d42e9850eae14f9c08d91 |
Close
Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_24_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e509126192689d688041efe614b8d8967184ed6972cb39d323e1c924db819679 |
|
MD5 | eb6b4cc11da0fb0b77fe88e2f2229890 |
|
BLAKE2b-256 | 4dd9be654c2865d889ba22da66778406d6c15a0237dec77ed5dc1df44ab1438f |
Close
Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee8cf9c028189f479fbad6954b760bf4a62b008ae49495f2dc2e74a1f069e17 |
|
MD5 | 05e7148b7651c11cc2cad31a1b3be1c0 |
|
BLAKE2b-256 | 298e8871bd6ae6d38eb43f1e10a5ca2496e0c19d8f4d76cab8f63936841fa865 |
Close
Hashes for google_re2-0.2.20220201-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72ae7c4f0b23f93ae1b47529a292e75d7f4dddc5eefabbf073df104e62f6a7a |
|
MD5 | 68fa2db3a8fca70a4d7d2233939e8697 |
|
BLAKE2b-256 | fe5f1e01a0c8ae5ba7b932eb53685db077f128fc262650c540c8b785dba21829 |