Comparison
acora vs ahocorasick-rs vs pyahocorasick vs textsearch
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Fast multi-keyword search engine for text strings
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install acoraSearch for multiple substrings at the same time, and quickly too
Maintained. Last release 11 days ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install ahocorasick-rspyahocorasick is a fast and memory efficient library for exact or approximate multi-pattern string search. With the ``ahocorasick.Automaton`` class, you can find multiple key string occurrences at once in some input text. You can use it as a plain dict-like Trie or convert a Trie to an automaton for efficient Aho-Corasick search. And pickle to disk for easy reuse of large automatons. Implemented in C and tested on Python 3.6+. Works on Linux, macOS and Windows. BSD-3-Cause license.
Low maintenance activity. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install pyahocorasickFind strings/words in text; convenience and C speed
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install textsearchIn short
- acora is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- textsearch looks abandoned: avoid it for new projects.
- pyahocorasick is the most used: 7.5M downloads a month, 4.7× more than ahocorasick-rs.
- ahocorasick-rs is better maintained: Pythie’s Index 58 against 38.
- ahocorasick-rs is growing fastest: downloads +92% over the last month.
Side by side
| Metric | acora | ahocorasick-rs | pyahocorasick | textsearch |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | 58 |