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.1-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3407594d0115312594220ed1a645356ba008fa37cdc25b069c131165d77046 |
|
MD5 | 39bf9641a6fe5392a2ff25d0c48ca8a0 |
|
BLAKE2b-256 | 540e1215b7d9f2a7f6d60cd394c628fdce0dd6130b6a75977c67e0a3c6a04a99 |
Hashes for hyperscan-0.3.1-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94895d19b8f20bfacc02262c86d01840461739b3e6953180369a24f33bc5a644 |
|
MD5 | 29b6ddeb7c20aad9ff3fe887b6058db2 |
|
BLAKE2b-256 | 6185d911c6e6c320bd6f6e08c30cfd23e35f82d5a7eb68f3d38cbb7557f8f517 |
Hashes for hyperscan-0.3.1-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583186397671b98a68bcda403c30d35c97ebae3bbf9301fc959765d71a066d18 |
|
MD5 | ef697626f209b96d14c5588128ab3dd0 |
|
BLAKE2b-256 | a100adf473ad1b5265d9ef3e36e353bbd763c4447cc31bf20e3cab19cfaf3a87 |
Hashes for hyperscan-0.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c41d5df7b664707cccb7a4ac04bb65e3cbd1fe71eb19506c0234a7e5bc6e94f7 |
|
MD5 | 9e330681089b21c246a7995311fab0d0 |
|
BLAKE2b-256 | 9efd2989065d4e0b03d96cb6d013edf14ac0fd38fd737a0ce24709f71a55edca |
Hashes for hyperscan-0.3.1-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55bafdde8abe1849d18e42578200003cf2e597b4e1fb8b43637f57dfc2e8b3e |
|
MD5 | 09e39391bbf154d96ae70ff36eecfe00 |
|
BLAKE2b-256 | 8894789fb123dfdc915a53fd00965e22e0d2ce62d339bfa17cad6bac1bbe2468 |