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.3.2-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa6eebbd9d4c618eb8d09680ae332d508c5c6060431a38b23ae336c8be6eb130 |
|
MD5 | 859c2145ea2f73b1fbf11e612f670c0e |
|
BLAKE2b-256 | 15091ae20b85dca54dbb472d2706468e2cc05a608e86840a60dd4026594dd16a |
Hashes for hyperscan-0.3.2-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c6c4fd4df700a0031501ab4e3e51db7615b73b86ca69a1775197ed9eadfecd |
|
MD5 | fbbb8ac431eb7bc16f60db08efb4d828 |
|
BLAKE2b-256 | 27dedd7ad17ce12cb4fb871739532ed61756da9b136525077ab36fa4cd005480 |
Hashes for hyperscan-0.3.2-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866d635698f2767c1bccf78d8a5ebec415085a65d74fa1d6c1017d134504a13f |
|
MD5 | 83bd64b314642c070fe1968e7c7fa86f |
|
BLAKE2b-256 | 5857bb53184c6879bbac8163eb1cb31fae7fcfc2d4db7e1a2a94be39002051f4 |
Hashes for hyperscan-0.3.2-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b964bc277458eb2a915f1f02b5e326e1a3b48dbb790a7dd952a220ed7fec29 |
|
MD5 | 5bae32c89dfd7b984e51c0d9bac180f4 |
|
BLAKE2b-256 | e521fb9ad05f26ed65b147b34ba10fac319832060b5a0c583b0764e9f91284f8 |
Hashes for hyperscan-0.3.2-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1863df991196a883472132e7945425f165bac3dd3ea05f45d98bdf44508fe55f |
|
MD5 | 81e00214f1058a788c4bdca00d7768c3 |
|
BLAKE2b-256 | 450460b662d20e671cabce0656a01716dfef6428a3bd48eb3dec114e8c33dd16 |