Skip to main content

A package to enhance the input function in Python

Project description

work in progress

EnhancedInput

The easiest way to deal with input in Python

It's as easy as this!

from enhancedinput import EnhancedInput

# Create an EnhancedInput object
inp = EnhancedInput(theme=Themes.fancy)

# Get input from the user, with a length validator 1-20 characters
name = inp.get("What is your name?", validators=[Validators.LengthValidator(1, 20)])

# Get input from the user, with a range validator 0-120,
# which will automatically be valited to an int and returned as an int
age = inp.get("What is your age?", input_type=int,
              validators=[Validators.RangeValidator(0, 120)])

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

EnhancedInput-0.1.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

EnhancedInput-0.1.1-py3-none-any.whl (5.3 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