To help you make inputs of different types in a more convenient manner
Project description
What is this package for?
This package is to simplify the user to use the input function with different data types. For example, we can simplify this:
x = int(input("please insert a number"))
to
x = inpt.i(int,"please insert a number")
How to install it?
You can type this in the terminal or command prompt to install this package:
pip install inpt
Minumum requirement
python 3.5
Current version
0.0.5
How to use this version
To use this version, you will first need to import it like this:
from inpt import inpt
The format for the library and parameters is like this:
inpt.i(data_type, text for input)
Let's say we want to have a string input that wants the user to input their name. We can do it like this:
from inpt import inpt
c = inpt.i(str,"What is your name?")
The output will be:
What is your name?
<Insert a string here and press enter>
This version has to offer:
Automatic one line space after the input text
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
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 inpt-0.0.5.tar.gz.
File metadata
- Download URL: inpt-0.0.5.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae21d529b780fbeafb1bad39389cd5dffe81c578d8649ac37d7cd870733657f5
|
|
| MD5 |
1582fee809a7bc2e8d6f0a9b9cd75185
|
|
| BLAKE2b-256 |
05cda35eee030db098321145e807d5d138e3355ab07a91cbb911fbad86b43faf
|
File details
Details for the file inpt-0.0.5-py3-none-any.whl.
File metadata
- Download URL: inpt-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
628e0f546e21baf6caff9e6bf3d1f8add84fffd903d9919358d6fee4a59e0a23
|
|
| MD5 |
dd6ac4db6bc1c0e3822990a87c4644d7
|
|
| BLAKE2b-256 |
17af049e7f0de32d55a99ba0739055d3118afa681a61285a993f42a9774247b9
|