Skip to main content

A fast Python implementation of ac auto mechine.

Project description

A fast Python implementation of Ac Auto Mechine

Installation

To install:

$ pip install acAutoMechine

Quickstart

from acAutoMechine import Ac_mechine

### usage one:
actree = Ac_mechine()
actree.add_keys('he')
actree.add_keys('her')
actree.add_keys('here')
actree.build_actree()
### all match
print(actree.match("he here her"))
### long match
print(actree.match_long("he here her"))
### all match with match path
print(actree.match("he here her"), True)
### long match with match path
print(actree.match_long("he here her"), True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acAutoMechine-0.0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page