Python package - input_num is like input but it only accepts numbers
Project description
input_num
Python package - input_num is like input but it only accepts numbers
Instalation
-
Windows / macOS
Run
python3 -m pip install input_num
-
Linux
Run
python3 -m pip install input_num
Usage
-
Windows / macOS / Linux
Add this to your script:
import input_num
input_num("Enter your age: ")
If you want to allow only positive numbers (numbers WITHOUT - at the begining), use
input_num("Something", False)
. False just means Allow negative numbers = False And it is optional argument
Uninstallation
-
Windows / macOS
Run
python3 -m pip uninstall input_num
-
Linux
Run
python3 -m pip uninstall input_num
FAQ
-
Question
Answernot enough
Do you like this? Hit that ⭐!
Use the star button as way to show us, that it works
Forks and pull requests are welcome of course
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
File details
Details for the file input_num-0.0.7.tar.gz
.
File metadata
- Download URL: input_num-0.0.7.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46401a2865aadcd7d6b812346f318d0c67efd06341114ba62c08232d5d62a35a |
|
MD5 | daafaaed4331c905a7e527d410a46c40 |
|
BLAKE2b-256 | 904fad1cb9ae9ddee478a238326adba33e0a0063be9beb494188c9e6ea1b7ef9 |
File details
Details for the file input_num-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: input_num-0.0.7-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cb9740ed6fbe10aeff877a175c41cc11850a615601dd74c236e4080dd088cc9 |
|
MD5 | 0d5da931a518e0c90a856ddce5e00c2e |
|
BLAKE2b-256 | 8f1194f480369988821de78ca47f953080dcbbfcd8669d8b23956743ad6c96df |