Skip to main content

Autofill is a Python library for dealing with auto-completion of words.

Project description

Autofill

Autofill is a Python library for dealing with auto-completion of words.

Installation

Use the package manager pip to install autofill.

pip install autofill

Usage

from autofill import autofill

# register list of 'words' into autofill system
words = ["mobile", "mouse", "moneypot", "monitor", "mousepad"]
autofill.register_words(words)

# prefix search
autofill.search('mou') # returns ['mouse', 'mousepad']

# Find top k words from previous search matches
autofill.find_top_k_matches(k=4) # returns [('mouse', 1), ('mousepad', 1), ('mobile', 0), ('moneypot', 0)]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

License

MIT

======= History

0.1.0 (2021-08-01)

  • First release on PyPI.

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

autofill-0.1.0.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

autofill-0.1.0-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

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