Skip to main content

Python bindings for Hyperscan.

Project description

Hyperscan for Python

python-hyperscan workflow PyPI - Python Version PyPI - Wheel PyPI - Status PyPI - License Read the Docs

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, and hs_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 if BUILD_SHARED_LIBS is also on, in the event there are other applications colocated with python-hyperscan that need the shared libraries. Otherwise ignore this flag, as by default Hyperscan will build static libraries.
  • CMAKE_C_FLAGS and CMAKE_CXX_FLAGS set to -fPIC

See the documentation for more detailed build instructions.

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperscan-0.3.2.tar.gz (16.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hyperscan-0.3.2-cp310-cp310-manylinux_2_24_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64

hyperscan-0.3.2-cp39-cp39-manylinux_2_24_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

hyperscan-0.3.2-cp38-cp38-manylinux_2_24_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

hyperscan-0.3.2-cp37-cp37m-manylinux_2_24_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.24+ x86-64

hyperscan-0.3.2-cp36-cp36m-manylinux_2_24_x86_64.whl (4.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.24+ x86-64

File details

Details for the file hyperscan-0.3.2.tar.gz.

File metadata

  • Download URL: hyperscan-0.3.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for hyperscan-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8dacf5b839cfb31004aee07cf3f3e0c57e0da7dc4445e2e70aeab3250863796f
MD5 2da1cc9237ad2f8328be8a50e8d95349
BLAKE2b-256 625ec76f25f30500f6c6906bf76c8dcfc6ccdc284ae49e055d1d91d64df99de3

See more details on using hashes here.

File details

Details for the file hyperscan-0.3.2-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for hyperscan-0.3.2-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 fa6eebbd9d4c618eb8d09680ae332d508c5c6060431a38b23ae336c8be6eb130
MD5 859c2145ea2f73b1fbf11e612f670c0e
BLAKE2b-256 15091ae20b85dca54dbb472d2706468e2cc05a608e86840a60dd4026594dd16a

See more details on using hashes here.

File details

Details for the file hyperscan-0.3.2-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for hyperscan-0.3.2-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 f1c6c4fd4df700a0031501ab4e3e51db7615b73b86ca69a1775197ed9eadfecd
MD5 fbbb8ac431eb7bc16f60db08efb4d828
BLAKE2b-256 27dedd7ad17ce12cb4fb871739532ed61756da9b136525077ab36fa4cd005480

See more details on using hashes here.

File details

Details for the file hyperscan-0.3.2-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for hyperscan-0.3.2-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 866d635698f2767c1bccf78d8a5ebec415085a65d74fa1d6c1017d134504a13f
MD5 83bd64b314642c070fe1968e7c7fa86f
BLAKE2b-256 5857bb53184c6879bbac8163eb1cb31fae7fcfc2d4db7e1a2a94be39002051f4

See more details on using hashes here.

File details

Details for the file hyperscan-0.3.2-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for hyperscan-0.3.2-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 18b964bc277458eb2a915f1f02b5e326e1a3b48dbb790a7dd952a220ed7fec29
MD5 5bae32c89dfd7b984e51c0d9bac180f4
BLAKE2b-256 e521fb9ad05f26ed65b147b34ba10fac319832060b5a0c583b0764e9f91284f8

See more details on using hashes here.

File details

Details for the file hyperscan-0.3.2-cp36-cp36m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for hyperscan-0.3.2-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 1863df991196a883472132e7945425f165bac3dd3ea05f45d98bdf44508fe55f
MD5 81e00214f1058a788c4bdca00d7768c3
BLAKE2b-256 450460b662d20e671cabce0656a01716dfef6428a3bd48eb3dec114e8c33dd16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page