Skip to content

aboutcode-org/ahocode

Repository files navigation

ahocode

This repo is a pure python implementation for pyahocorasick, inspired by abusix/ahocorapy.

Installation

Requirements

  • Python 3.8 or later
pip install ahocode

Documentation

ahocode is a fallback library for pyahocorasick, so the Automaton class and its methods have same names and parameters.

Below listed are the implemented classes and methods.

Classes

  • Automaton

Methods for Automaton class

  • add_word
  • get
  • clear
  • exists
  • find_all
  • items
  • make_automaton
  • iter
  • keys
  • values
  • __getstate__
  • __setstate__
  • __len__
  • __contains__

For documentation please refer to: https://pyahocorasick.readthedocs.io/en/latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published