Simple input library for lazy developers
Project description
lb_valid_input
© Copyright logic-break 2026
https://github.com/logic-break/logic-break/tree/main/libraries/lb_valid_input
lib made for lazy, by lazy
installation:
pip install lb-valid-input
NOTE: in code, you must import lb_valid_input
Usage:
.numberinput(prompt, min_val, max_val) Safely gets a number (int/float). Prevents crashes from text input and checks optional min/max range.
.choiceinput(question, choices) Asks a question with a list of options. Forces the user to pick one from the list (case-insensitive).
.choiceinput(question, choices) Asks a question with a list of options. Forces the user to pick one from the list (case-insensitive).
Example:
import lb_valid_input as lbi
# It will ask "What do you want to do? (Deposit, Withdraw, Exit)"
action = lbi.choiceinput("What do you want to do?", ["Deposit", "Withdraw", "Exit"])
if action == "Deposit":
amount = lbi.numberinput("Enter amount to deposit: ", min_val=0.01)
print(f"Successfully deposited ${amount}")
elif action == "Withdraw":
amount = lbi.rangeinput("Enter amount to withdraw (10-1000): ", 10, 1000)
print(f"Please take your ${amount}")
else:
print("Goodbye!")
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
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 lb_valid_input-0.0.1.tar.gz.
File metadata
- Download URL: lb_valid_input-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13ace656478653da2bdfdfe65f3774c399288ef4017a8ed5d89f466d4d5d0fd8
|
|
| MD5 |
46762c0b1bb908f1a138615d59b2b64c
|
|
| BLAKE2b-256 |
b75e9b9607426329967de8e8a2e2d6676694d85c292ff055796e2f5ce298b9aa
|
File details
Details for the file lb_valid_input-0.0.1-py3-none-any.whl.
File metadata
- Download URL: lb_valid_input-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7944ba6d12db67c545f1bf9f18db124de64f947d1e705edf1b81f57a5ed0f4fb
|
|
| MD5 |
c7c372b4d6207a7c05e341031ff0706e
|
|
| BLAKE2b-256 |
5baac60ebb9e5e1d563927deba65f7c4f5bb394252830686f2625d917e0ce7f4
|