Input autocompletion
Project description
AutoPyInput
- For Windows
- Requires Python >= 3.10
- Autocomplete words while user input
- Use Tab or arrow keys to cycle through choices
Usage
from autopyinput.word_complete import Wordcompleter
import autopyinput.utils as au
# Custom words
word_list = ['hello', 'world', 'word', 'hi']
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
# Clean up and use string
doc = '''
#hello world!
def main():
print("hello world")
main()
'''
word_list = au.string_to_words(au.clean(doc))
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
# Clean up and use file data
doc = "example.txt"
word_list = au.file_to_words(doc)
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
Known issue: Displays nothing when the display is the same length as your terminal width, but input is saved so it is safe to click "Enter" and get input.
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
auto_py_input-0.0.1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for auto_py_input-0.0.1-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | cf75da92e9aa7835467fb56838bd1da6f96c0a1af3f937336c1ef7eb8bdcce7d |
|
| MD5 | 6a96fe6b22052944d7ed05483b89634f |
|
| BLAKE2b-256 | f0d6294333ae4a40f5818a268319f96469f92e88381b113d0aac36d684cb335e |