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.
- 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
======= History
0.1.0 (2021-08-01)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file autofill-0.1.0.tar.gz
.
File metadata
- Download URL: autofill-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3700e57d2574aca682f73297a14306887b579e3810b16773cf03b7c7cd77ef92 |
|
MD5 | 18c685fed687925510d85a86e7ae82de |
|
BLAKE2b-256 | d33e6b8ecd9b6ebe9d2b778703b73d84faecd7e7a4f637c91892e4bea8d26c06 |
File details
Details for the file autofill-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: autofill-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9576ad575e38727f28c4fb53c18fb8a607a99bf1b0ac1af75c0867249a85b420 |
|
MD5 | b3d87c04a72b677df141075e7e4e8e1c |
|
BLAKE2b-256 | 190f45410223f7cc1688ccbb96b4190bed1353a74e5198d4e0b57b1a050cfd2f |