Skip to main content

Tab-completion for inputs

Project description

Renput

A simple Python library for Windows, which replaces the default input function in order to add the functionality to automatically complete an input using the tab key.

GitHub license GitHub stars GitHub all releases GitHub all releases

Features

input(prompt, auto_complete)

  • prompt: The prompt given to the user before the input line.
  • auto_complete: A list of auto completions that get input when the tab ↹ key is pressed

Example of use

from renput import *

auto_complete = [
    "apple",
    "banana",
    "cherry",
    "pineapple"
]

print("Enter the first few letters of apple, banana, cherry or pinapple,\nthen press tab to see the functionality of Renput:")
while True:
    input(auto_complete=auto_complete)

Please report any issues that you find when using the library, but only if you are on the newest version. Optionally, you can report new issues on my discord server.

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

renput-0.0.4.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

renput-0.0.4-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

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