Last updated:
0 purchases
autofill 0.1.0
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.
Fork it (https://github.com/yourname/yourproject/fork)
Create your feature branch (git checkout -b feature/fooBar)
Commit your changes (git commit -am 'Add some fooBar')
Push to the branch (git push origin feature/fooBar)
Create a new Pull Request
License
MIT
=======
History
0.1.0 (2021-08-01)
First release on PyPI.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.