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
File details
Details for the file google-re2-0.2.20211101.tar.gz
.
File metadata
- Download URL: google-re2-0.2.20211101.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 305dc0f749c1abad51f8dc59b49b98a58dc06b976727f6b711c87c01944046d9 |
|
MD5 | 11d4cea270229d38f4e3f57057200e09 |
|
BLAKE2b-256 | d7b203fbcad54d1b896e09c89b0342afee3ae528df3c5174ba04aff1a9a8246e |
File details
Details for the file google_re2-0.2.20211101-cp39-cp39-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp39-cp39-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 344.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c404ea07f8ba0d62bf1195bc89a2183ad7630d87f6653074886a67c233058c |
|
MD5 | 7de421243f8dbde5cf876bc00a3e74a1 |
|
BLAKE2b-256 | adfb8cc49e7833ab56a58a55d8d66b59f2d4a0f803a8135031a679052b5e47e0 |
File details
Details for the file google_re2-0.2.20211101-cp39-cp39-manylinux_2_24_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp39-cp39-manylinux_2_24_aarch64.whl
- Upload date:
- Size: 320.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.24+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3dc0f87924bf9be5cd14e69c3d90cd5c78cf455facaf0dbe859795e4c227ceb |
|
MD5 | c2ec5d28e51506549b0e03abcd7a5574 |
|
BLAKE2b-256 | e1d48941f453ffb478afb57db2ccaa2e847f876223cb57029081e8aaafec3bcb |
File details
Details for the file google_re2-0.2.20211101-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 344.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7bd434d9d74bb3800684c228399cfaa50bd9aed000d6168d70554b051d32b4 |
|
MD5 | 65cab2059dcb578e31bca08bd22b50ac |
|
BLAKE2b-256 | 625918f7711339c8ba3c422906372048daec1ae93e4c42ad8d9dae98ef75c142 |
File details
Details for the file google_re2-0.2.20211101-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 324.7 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be575a2204257eee3e2767415d4c2043ffc31b272a10ce64f1e013151f25927 |
|
MD5 | a84821e696f1c41bb085d6494a770e91 |
|
BLAKE2b-256 | f0fce9fd51b7ddd78d4fbbc88ffd3448317f1ffe8738404932821c6fa8b02703 |
File details
Details for the file google_re2-0.2.20211101-cp38-cp38-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp38-cp38-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 344.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1fb5dbc23fcc2d5a634e23a185ea08e552a83d76bf324ab52b15eb8c0f87795 |
|
MD5 | 3a8023902be872b47bac03421119ae2e |
|
BLAKE2b-256 | 5ed0524873547963a9425ffd521ea3812e613a5c6a1da4c379acd6ff0553d695 |
File details
Details for the file google_re2-0.2.20211101-cp38-cp38-manylinux_2_24_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp38-cp38-manylinux_2_24_aarch64.whl
- Upload date:
- Size: 320.7 kB
- Tags: CPython 3.8, manylinux: glibc 2.24+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47641cca783e00eb05873c9f51a6cd5bc1fc1a4ecb33f3b8c74b620102bfa421 |
|
MD5 | 336bef21957ea520437d1dbbee6e2795 |
|
BLAKE2b-256 | 3ffb93616c533f3fa0bdefce1f8b01fddc3c17acf84bb5d0d0c2879c14d5f1ae |
File details
Details for the file google_re2-0.2.20211101-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 343.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a40ab939f5e2b7493faddeb6df8443e62ff418aa21ffcca662b0da698f0cf2f |
|
MD5 | 1204a005abbd349dc4b6dd4ea46fbf93 |
|
BLAKE2b-256 | 99efccc730a4d5d757b0c4f0971df4f0842ec9cde37aac3a242fd296e8375a25 |
File details
Details for the file google_re2-0.2.20211101-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 324.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 863e57f51591cd2878f68b80e85e3f6eb6ebc26a336aafb576789ce54b1d360c |
|
MD5 | 64f692d2e6c485ef4a2eba55ede7da6c |
|
BLAKE2b-256 | 2b00017b3aeee4c7b8f81b0ff8c221104399baeb3ec15f2246234f8478b39b36 |
File details
Details for the file google_re2-0.2.20211101-cp37-cp37m-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp37-cp37m-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 345.7 kB
- Tags: CPython 3.7m, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9536f4d965eaa6754170b4ebdabd6a89b64fe4560cc207fec5272bfad345e8be |
|
MD5 | c81079927fbd5c77541bbcd86962d1be |
|
BLAKE2b-256 | a530aca28b38b934df7f3bd0407d0fdf109c8c4a7a4394a05f65b7b1212951aa |
File details
Details for the file google_re2-0.2.20211101-cp37-cp37m-manylinux_2_24_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp37-cp37m-manylinux_2_24_aarch64.whl
- Upload date:
- Size: 321.5 kB
- Tags: CPython 3.7m, manylinux: glibc 2.24+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c6bac568fb4fedc8c3c8991ae3ac021fd52340f5a64444d100f0b76e6fba71 |
|
MD5 | 5d00245707e07dc053418b2f623048df |
|
BLAKE2b-256 | 950ed7d889f9a496db317c4306b0bfa63207d3043f652b301e9ebe0b48005a06 |
File details
Details for the file google_re2-0.2.20211101-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 346.0 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4092901334817ec105c9cedd41c7057e9e3914fd9321d24b441db2f2df1d4634 |
|
MD5 | ca5741bfecf1df0b8f04a55cdec33c22 |
|
BLAKE2b-256 | 8c3ac8714a238e3066f6819f90685b0ac2f4be14fceb8b15f04747cfbe5016ab |
File details
Details for the file google_re2-0.2.20211101-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 327.1 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67235bf48cf1d41b3cd0ad42fdafa04afd6f8bfb6c79bf89bc9a01065734f6e2 |
|
MD5 | ab88a273bda15e1629c6a53281cfa02e |
|
BLAKE2b-256 | ad652d90c7156a2d083e517317345a4da27d8064ae61cc4539544656f2695b11 |
File details
Details for the file google_re2-0.2.20211101-cp36-cp36m-manylinux_2_24_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp36-cp36m-manylinux_2_24_x86_64.whl
- Upload date:
- Size: 345.7 kB
- Tags: CPython 3.6m, manylinux: glibc 2.24+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f68ac17aa8abe657b970e5e1419223f98ed48dfb70577fe0bbd1697dea74fdb |
|
MD5 | 0e4e2327e5705077008256483ce73215 |
|
BLAKE2b-256 | 2e87bdf52e10dac535f4daa0b9cd6c54cba9ce13ae939605acc9baddcc7863da |
File details
Details for the file google_re2-0.2.20211101-cp36-cp36m-manylinux_2_24_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp36-cp36m-manylinux_2_24_aarch64.whl
- Upload date:
- Size: 321.4 kB
- Tags: CPython 3.6m, manylinux: glibc 2.24+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cc08c067156c8fc13d5cb074a4ad2496f3fc73d2b83b80cdfaa2c873edada6 |
|
MD5 | 8a7024982f32e4e68163fb5273c01669 |
|
BLAKE2b-256 | dabc71f765e3d3b034d6b39ec1a22dc86a1d3190f2ad54d838b34142341cd059 |
File details
Details for the file google_re2-0.2.20211101-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 345.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3b1a0664fcf934e23e449f700fc5fd83a1d93806bd8dc2c395506d05a138a7 |
|
MD5 | 73f1e1b723d6f9d1944da369507a72c5 |
|
BLAKE2b-256 | bd745c1e5f33342e3bc4a0ac6d8effea86c35d01ce6b937a40aafba54fdfbed5 |
File details
Details for the file google_re2-0.2.20211101-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: google_re2-0.2.20211101-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 327.1 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425c9eb2e74aae5bc058ecee5890975d425b3677fc3afc1b0be031cb8dcd0b1d |
|
MD5 | 97b52255984af52c73a6909f8fc431e3 |
|
BLAKE2b-256 | 6e2cf6148d34c098b9ceb8f8b58ef439f6408e72828328ea89bbffe96a95fce1 |