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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file EnhancedInput-0.1.1.tar.gz.
File metadata
- Download URL: EnhancedInput-0.1.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4be00d79f1633f578f60f560a67bea3530fd4609093b8631a9c313d7af3707b
|
|
| MD5 |
da8364d7d61960c56bf03479844c6b62
|
|
| BLAKE2b-256 |
ebfdc2eb120296862ea56bb967ce81b068de074268d40c06283648c166f3f545
|
File details
Details for the file EnhancedInput-0.1.1-py3-none-any.whl.
File metadata
- Download URL: EnhancedInput-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4ca365dc5f2eabb132b5d3066680ca02a103d7d1b657ea57d7e4bba5263600
|
|
| MD5 |
70b2d939556bd599e1a8bccbfe0a8422
|
|
| BLAKE2b-256 |
b2805db5b546e887ea0aefdc577cb04a22e519ebfaaee1d0692d211815413050
|