Skip to main content

Python bindings for Hyperscan.

Project description

# Hyperscan for Python

[![Build wheels](https://github.com/darvid/python-hyperscan/actions/workflows/wheels.yml/badge.svg)](https://github.com/darvid/python-hyperscan/actions/workflows/wheels.yml) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hyperscan.svg) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/hyperscan.svg) ![PyPI - Status](https://img.shields.io/pypi/status/hyperscan.svg) ![PyPI - License](https://img.shields.io/pypi/l/hyperscan.svg) [![Read the Docs](https://img.shields.io/readthedocs/python-hyperscan.svg)](https://python-hyperscan.readthedocs.io/en/latest/)

A CPython extension for [Hyperscan](https://www.hyperscan.io/), Intel’s open source, high-performance multiple regex matching library. Currently only supports manylinux-compatible Linux distributions.

## Installation

`shell # 🪄 Installing libhs is NOT required, because python-hyperscan is statically linked pip install hyperscan `

## API Support

python-hyperscan currently exposes most of the C API, with the following caveats or exceptions:

  • No [stream compression][2] support.

  • No [custom allocator][3] support.

  • hs_expression_info, hs_expression_ext_info, hs_populate_platform, and hs_serialized_database_info not exposed yet.

See the [documentation][6] for more detailed build instructions.

## Resources

[1]: http://intel.github.io/hyperscan/dev-reference/chimera.html [2]: http://intel.github.io/hyperscan/dev-reference/runtime.html#stream-compression [3]: http://intel.github.io/hyperscan/dev-reference/runtime.html#custom-allocators [4]: http://intel.github.io/hyperscan/dev-reference/compilation.html [5]: https://github.com/darvid/python-hyperscan/issues [6]: https://python-hyperscan.readthedocs.io

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

hyperscan-0.5.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-cp311-cp311-musllinux_1_1_x86_64.whl (3.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

hyperscan-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-cp311-cp311-macosx_10_14_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.14+ x86-64

hyperscan-0.5.0-cp310-cp310-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

hyperscan-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-cp310-cp310-macosx_10_14_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.14+ x86-64

hyperscan-0.5.0-cp39-cp39-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

hyperscan-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-cp39-cp39-macosx_10_14_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

hyperscan-0.5.0-cp38-cp38-musllinux_1_1_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

hyperscan-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

hyperscan-0.5.0-cp38-cp38-macosx_10_14_x86_64.whl (2.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

Supported by

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