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.
Metadata
Release files for auto-py-input 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_py_input-0.0.1.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_py_input-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / auto_py_input-0.0.1.tar.gz
| Download URL | auto_py_input-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61f3a0b93e3bd7426ee9f109c0f89bb80f8841fb5d93b1f8e59372a5719f2ff6
|
|
BLAKE2b-256 checksum How to use checksums |
a79d7f82182b847f8283a5ce255d4a4ecd30a43ff0eb1ec1c33435a8aaab16a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / auto_py_input-0.0.1-py3-none-any.whl
| Download URL | auto_py_input-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf75da92e9aa7835467fb56838bd1da6f96c0a1af3f937336c1ef7eb8bdcce7d
|
|
BLAKE2b-256 checksum How to use checksums |
f0d6294333ae4a40f5818a268319f96469f92e88381b113d0aac36d684cb335e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|