• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    C
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A CPython extension for the Hyperscan regular expression matching library.

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

More Repositories

1

zsh-poetry

🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
Shell
71
star
2

nessusbeat

A Beat that monitors a local Nessus reports directory and outputs scan results to Elasticsearch or Logstash.
Go
32
star
3

trine

Trine is a utility for World of Warcraft emulators (e.g. TrinityCore) that uses YAML as a DML (data manipulation language) to interface with the emulator's database.
Python
29
star
4

wraeblast

A library for interacting with Path of Exile game and economy data, and a unique loot filter generation framework.
Python
27
star
5

reqwire

Wires up your pip requirements with pip-tools.
Python
16
star
6

stashvision

βš”οΈ A private stash indexing tool and in-game item highlighting overlay for Path of Exile. πŸ—‘οΈπŸ§°
AutoHotkey
16
star
7

emissary

A TCP service multiplexer
Go
15
star
8

biome

Provides painless access to namespaced environment variables.
Python
11
star
9

proxenos

A rendezvous hashing and service routing toolkit for Python.
Python
8
star
10

sphinx_md_theme

A Material design theme for Sphinx.
JavaScript
7
star
11

pitstop

πŸŽοΈπŸπŸ› οΈ Supercharged application configuration management.
Python
5
star
12

addpath

Self-installing Windows shell context menu handler that allows for the quick addition of directories to the system PATH environment variable.
Batchfile
5
star
13

tudor-volumed

Lightweight audio volume management daemon.
C++
4
star
14

clover-roulette

Generate color schemes from COLOURlovers palettes.
Python
4
star
15

hydrogen

Lightweight pip wrapper with bower support and an opinionated, npm-like workflow.
Python
3
star
16

manylinux-hyperscan

manylinux-based Docker image with Hyperscan installed.
Dockerfile
3
star
17

flask-habitat

Selectively load Flask configuration values from environment variables at runtime.
Python
3
star
18

nacreous

Downloads and tags tracks from Soundcloud.
Python
3
star
19

dotfiles

Personal dotfiles managed by dotbot
Shell
2
star
20

tudor-easel

A modular, multi-application system color scheme manager.
Python
2
star
21

trine-passive-scripts

Python
2
star
22

plugin-potus

The greatest prompt on earth for Oh My Fish.
Shell
2
star
23

ns2f

netstat2firewall (ns2f) generates iptables rules from netstat output
ApacheConf
2
star
24

auryea

A dirt simple, mud ugly AUR frontend written in bash. Aw yeah. (git mirror)
Shell
2
star
25

clover

A simplistic COLOURlovers interface.
Python
2
star
26

trine-sun-schema

Generates the SUN WoW mall and various other database-bound features, and serves as an example for Trine schema.
2
star
27

obstartup

A user-friendly Openbox autostart.sh configurator. (git mirror)
Python
2
star
28

PartyFix

World of Warcraft 3.3.x addon that automatically promotes yourself to party leader when leaving battlegrounds/arenas.
Lua
1
star
29

realmswitch

A realmlist switcher for World of Warcraft. Written in AutoIt 3.
AutoIt
1
star
30

cookiecutter-pylibng

A poorly named cookiecutter for scaffolding Python (2 and 3) libraries.
Makefile
1
star
31

d10i.dev

πŸŒ‡ personal site
JavaScript
1
star
32

tudor-do

A lightweight run dialog for Linux that has a minimal feature set and resource footprint.
C++
1
star