hyperscan

0.7.8last stable release 3 months ago
Complexity Score
Low
Open Issues
N/A
Dependent Projects
4
Weekly Downloadsglobal
7,839

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

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, and hs_serialized_database_info not exposed yet.

See the documentation for more detailed build instructions.

Resources

  • PyPI Project
  • Documentation
  • Hyperscan C API Documentation

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
168
Dependenciestotal
0
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No Data
Repo Audits
No Data

Learn how to distribute hyperscan in your own private PyPI registry

pip install hyperscan
Processing...
Done

19 Releases

PyPI on Cloudsmith

Getting started with PyPI on Cloudsmith is fast and easy.