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.3-cp311-cp311-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b0a3fe004ab6964f33865408d29365e140130d699c82e6d7bc5fdc00445242 |
|
MD5 | bbe17b288193582112ee6ff04baef9c7 |
|
BLAKE2b-256 | 360410a2565a4682d5b0506338bfcfd33a1cbe1734284d30a083c3baffbf3e6d |
Hashes for hyperscan-0.3.3-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2eed595a1e8c659d9fdc72ea3544ea885d2694c481af640f0e8dc018f6863b |
|
MD5 | 5d7f82f09e1bb2beac9380899c776caa |
|
BLAKE2b-256 | 153c736edcc47fc6acc265975b77b5911cba1e3de87ef19ee7c77a375cf6cc43 |
Hashes for hyperscan-0.3.3-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd6718b7be188f4c29c72f3159e070e8d283e3258aabef7edf88e5d46611770 |
|
MD5 | a586d09f855c38306be48cd5aaebca69 |
|
BLAKE2b-256 | 0398e28bb6d0bd5f5b08c18a0291f7003b9d854bd1b28ecd246b04ccf188144b |
Hashes for hyperscan-0.3.3-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72437ccce91269b112ed678855c73c967d743fa6a9b65f100322a38db1e7f2a6 |
|
MD5 | 3fbeeee95eaf2e89d61eb4ae0a6e5dfd |
|
BLAKE2b-256 | 54ddd446960984f5b80a41c811df49c030e9c1b2239069fbb5f2035afe8ce663 |
Hashes for hyperscan-0.3.3-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d55a4c4036716641c401f79c3b950e20800af4a6b34767b7e9b647f28ff2d68 |
|
MD5 | 304383746f7689dc2cd50f40665ef438 |
|
BLAKE2b-256 | 338e3dcc23432f91a3384868cfdb78ae69cc176f6ca624133232f66beb485d60 |