Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_py_input-0.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file auto_py_input-0.0.1.tar.gz.

File metadata

  • Download URL: auto_py_input-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for auto_py_input-0.0.1.tar.gz
Algorithm Hash digest
SHA256 61f3a0b93e3bd7426ee9f109c0f89bb80f8841fb5d93b1f8e59372a5719f2ff6
MD5 3e937d351a6b4376f506113afa8ac22d
BLAKE2b-256 a79d7f82182b847f8283a5ce255d4a4ecd30a43ff0eb1ec1c33435a8aaab16a7

See more details on using hashes here.

File details

Details for the file auto_py_input-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: auto_py_input-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for auto_py_input-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf75da92e9aa7835467fb56838bd1da6f96c0a1af3f937336c1ef7eb8bdcce7d
MD5 6a96fe6b22052944d7ed05483b89634f
BLAKE2b-256 f0d6294333ae4a40f5818a268319f96469f92e88381b113d0aac36d684cb335e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page