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
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
EnhancedInput-0.1.1.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for EnhancedInput-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e4ca365dc5f2eabb132b5d3066680ca02a103d7d1b657ea57d7e4bba5263600 |
|
MD5 | 70b2d939556bd599e1a8bccbfe0a8422 |
|
BLAKE2b-256 | b2805db5b546e887ea0aefdc577cb04a22e519ebfaaee1d0692d211815413050 |