Comparison
ahocorasick-rs vs pyahocorasick
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Search for multiple substrings at the same time, and quickly too
Maintained. Last release 10 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 pyahocorasickIn short
- pyahocorasick is the most used: 7.3M downloads a month, 4.8× more than ahocorasick-rs.
- ahocorasick-rs is better maintained: Pythie’s Index 58 against 38.
- ahocorasick-rs is growing fastest: downloads +83% over the last month.
Side by side
| Metric | ahocorasick-rs | pyahocorasick |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 58 | 38 |