Python bindings for Hyperscan.
Project description
Hyperscan for Python
A CPython extension for Hyperscan, Intel's open source, high-performance multiple regex matching library. Currently only supports manylinux-compatible Linux distributions.
Installation
pip install hyperscan
API Support
python-hyperscan
currently exposes most of the C API, with the
following caveats or exceptions:
- No stream compression support.
- No custom allocator support.
hs_expression_info
,hs_expression_ext_info
,hs_populate_platform
, andhs_serialized_database_info
not exposed yet.
✨ As of v0.3.0, python-hyperscan
statically links against Hyperscan,
so having the library installed on your system is not required. Prior
versions of python-hyperscan
require Hyperscan v5.2 or newer. ✨
Building from source requires Hyperscan compiled and installed with the following CMake flags set:
FAT_RUNTIME=OFF
BUILD_STATIC_AND_SHARED=ON
only ifBUILD_SHARED_LIBS
is also on, in the event there are other applications colocated withpython-hyperscan
that need the shared libraries. Otherwise ignore this flag, as by default Hyperscan will build static libraries.CMAKE_C_FLAGS
andCMAKE_CXX_FLAGS
set to-fPIC
See the documentation for more detailed build instructions.
Resources
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
Hashes for hyperscan-0.4.0-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13dcd2bc677f20fa379857055784bc539d812f55ea476a2d6188cdf956f91a37 |
|
MD5 | 7144f171617d16c69bcf26a4ffe8b387 |
|
BLAKE2b-256 | 59fec04cc29e4f4daa805374c7eda398f2cee393eaf67e669f3866cb31a3ece9 |
Hashes for hyperscan-0.4.0-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 829c49619e1c41d59cad9c504450cec7e9434aae52d08999c266d07d6b9c66d1 |
|
MD5 | dc2542048fcf310d9ab7e24e51e8d101 |
|
BLAKE2b-256 | 718e5dc75c3fb12b33296707c0333c547b35155ff31d665b7b38a99795f04c41 |
Hashes for hyperscan-0.4.0-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c19391b34525f169e52d4091653368d3db019e07029ca668f1ecb4fde3d933 |
|
MD5 | f7542ac0be5ed744c820529323459a26 |
|
BLAKE2b-256 | 6ea452fdcb41aebde8ae61618f9c19a130633d3d3f9f550afa9be4599f47f0dc |
Hashes for hyperscan-0.4.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1add719816b001dd6c86554d1d4d44bc3fb6c18f31bca2e836155ec73985643d |
|
MD5 | 489ce5d71de47331925d69ab3a6a06f0 |
|
BLAKE2b-256 | 96d3f1c5dc1f36e7502160ffe1243c0789ed2e8d0415a7df33c615080c6c3ff5 |
Hashes for hyperscan-0.4.0-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29844caa12e191696e634d969fc128d2235eaabf711f08bac0e23e63a662c354 |
|
MD5 | d15cc4f78cdf7815aeb3f7ce1d74cf15 |
|
BLAKE2b-256 | fb8dcdd4a25c839141aa22bb07d8f57b24c4aaed363638f33d60fb3fcf1ea61f |