python-hyperscan
python-hyperscan copied to clipboard
🐍 A CPython extension for the Hyperscan regular expression matching library.
This fork provides multiplatform support: https://github.com/VectorCamp/vectorscan
I try to run pileline using mutliprocessing with hyperscan. i use `with closing(Pool(args.nr_proc)) as pool:` to define process_pool I use `pool.apply_async()` to generate list of testks When I run tasks...
When calling scan methods, the `match_event_handler` callback can return a truthy value to indicate that the scan should be stopped. In the current error handling in `HANDLE_HYPERSCAN_ERR`, this is treated...
Hi, I'm facing the following error when trying to install hyperscan==0.1.5 from pip (I will give more context below). ``` ERROR: Command errored out with exit status 1: command: /usr/local/bin/python...
### Discussed in https://github.com/darvid/python-hyperscan/discussions/43 Originally posted by **darvid** July 24, 2022 I'm struggling with some personal issues right now and probably won't have the time to maintain this package in...
``` from typing import Optional, Any, List import hyperscan def on_match(id: int, start: int, end: int, flags: int, context: Optional[Any] = None) -> Optional[bool]: context['results'].append((id, start, end)) return 0 db...
For more info on the pull request see issue #5.
easier to use can make python-hyperscan more popular
Thanks for the great library. We discovered a memory leak when a Database object is compiled, dumped, and loaded multiple times. This is increasingly worse when the database is growing...