pyahocorasick

pyahocorasick 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.

Package versions

31 VERSIONS IN TOTAL
versionpublisheddirect vulnerabilities
2.3.127 Apr, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.3.017 Dec, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.2.019 Jun, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.1.021 Mar, 2024
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.0.014 Jan, 2023
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
2.0.0b14 May, 2022
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.4.420 Feb, 2022
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.4.320 Feb, 2022
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.4.227 Mar, 2021
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.4.126 Jan, 2021
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.4.014 Jan, 2019
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.3.020 Dec, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.13.111 Dec, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.123 Dec, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.112 Dec, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.106 Nov, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.925 Oct, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.825 Apr, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.7.dev123 Feb, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
1.1.723 Feb, 2018
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Get started free