pyahocorasick
Python module (C extension and plain python) implementing Aho-Corasick algorithm.
Python module (C extension and plain python) implementing Aho-Corasick algorithm.
To install this package, run one of the following:
pyahocorasick is a fast and memory efficient library for exact or approximate multi-pattern string search meaning that you can find multiple key strings occurrences at once in some input text. The library provides an ahocorasick Python module that you can use as a plain dict-like Trie or convert a Trie to an automaton for efficient Aho-Corasick search.
Summary
Python module (C extension and plain python) implementing Aho-Corasick algorithm.
Last Updated
Dec 18, 2025 at 08:51
License
BSD-3-Clause
Total Downloads
432.7K
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/WojciechMula/pyahocorasickDocumentation
http://pyahocorasick.readthedocs.io/en/latest/