Python bindings for Hyperscan.
Project Links
Meta
Author: David Gidwani
Requires Python: <4.0,>=3.9
Classifiers
Development Status
- 4 - Beta
Topic
- Software Development :: Libraries
- Software Development :: Libraries :: Python Modules
- Utilities
Programming Language
- Python
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Implementation :: CPython
Environment
- Console
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- POSIX :: Linux
- Unix
- MacOS
- Microsoft :: Windows
Hyperscan/Vectorscan for Python
A CPython extension for Vectorscan, an open source fork of Hyperscan, Intel's open source (prior to version 5.4), high-performance multiple regex matching library.
- โ Binary manylinux-compatible wheels
- โ Statically linked (no need to build Hyperscan/Vectorscan)
- โ Chimera support
Installation
# ๐ช Installing libhs is NOT required, because python-hyperscan is statically linked
pip install hyperscan
Build Optimization
If you'd like to use Intel's Hyperscan rather than Vectorscan, or if you'd like to enable native CPU detection to build optimized non-FAT libraries (default off in Vectorscan), extending the manylinux-hyperscan Docker image used to build the binary wheels for this library should be fairly straightforward.
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_infonot exposed yet.
See the documentation for more detailed build instructions.
Resources
0.8.2
Mar 19, 2026
0.8.1
Feb 11, 2026
0.8.0
Dec 06, 2025
0.7.30
Dec 04, 2025
0.7.29
Dec 02, 2025
0.7.27
Nov 04, 2025
0.7.26
Oct 18, 2025
0.7.23
Aug 07, 2025
0.7.21
Jul 20, 2025
0.7.19
Jul 20, 2025
0.7.13
May 29, 2025
0.7.12
May 15, 2025
0.7.9
May 12, 2025
0.7.8
Oct 12, 2024
0.7.7
Mar 11, 2024
0.7.0
Jan 27, 2024
0.6.0
Aug 10, 2023
0.5.0
Aug 08, 2023
0.4.0
Jan 11, 2023
0.3.3
Jan 07, 2023
0.3.2
Jun 13, 2022
0.3.1
Jun 13, 2022
0.3.0
Apr 11, 2022
0.2.0
Dec 12, 2020
0.1.5
Feb 22, 2020
0.1.4
Nov 08, 2019
0.1.3
Aug 05, 2019
0.1.2
Jun 12, 2019
0.1.1
May 03, 2019
0.1.0
Apr 14, 2019
0.0.2
May 27, 2018
0.0.1
Jun 04, 2017
Wheel compatibility matrix
Files in release
hyperscan-0.8.2-cp310-cp310-macosx_10_9_x86_64.whl (1.9MiB)
hyperscan-0.8.2-cp310-cp310-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp310-cp310-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp310-cp310-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp310-cp310-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-cp311-cp311-macosx_10_9_x86_64.whl (1.9MiB)
hyperscan-0.8.2-cp311-cp311-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp311-cp311-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp311-cp311-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp311-cp311-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-cp312-cp312-macosx_10_13_x86_64.whl (1.9MiB)
hyperscan-0.8.2-cp312-cp312-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp312-cp312-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp312-cp312-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp312-cp312-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-cp313-cp313-macosx_10_13_x86_64.whl (1.9MiB)
hyperscan-0.8.2-cp313-cp313-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp313-cp313-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp313-cp313-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp313-cp313-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-cp314-cp314-macosx_10_15_x86_64.whl (1.9MiB)
hyperscan-0.8.2-cp314-cp314-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp314-cp314-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp314-cp314-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp314-cp314-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-cp314-cp314t-macosx_10_15_x86_64.whl (2.0MiB)
hyperscan-0.8.2-cp314-cp314t-macosx_11_0_arm64.whl (1.9MiB)
hyperscan-0.8.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2-cp314-cp314t-musllinux_1_2_aarch64.whl (2.3MiB)
hyperscan-0.8.2-cp314-cp314t-musllinux_1_2_x86_64.whl (2.3MiB)
hyperscan-0.8.2-cp314-cp314t-win_amd64.whl (1.9MiB)
hyperscan-0.8.2-pp310-pypy310_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.6MiB)
hyperscan-0.8.2-pp310-pypy310_pp73-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4MiB)
hyperscan-0.8.2.tar.gz (122.7KiB)
No dependencies