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
Release files for inpt 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inpt-0.0.5.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inpt-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / inpt-0.0.5.tar.gz
| Download URL | inpt-0.0.5.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae21d529b780fbeafb1bad39389cd5dffe81c578d8649ac37d7cd870733657f5
|
|
BLAKE2b-256 checksum How to use checksums |
05cda35eee030db098321145e807d5d138e3355ab07a91cbb911fbad86b43faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Release files / inpt-0.0.5-py3-none-any.whl
| Download URL | inpt-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
628e0f546e21baf6caff9e6bf3d1f8add84fffd903d9919358d6fee4a59e0a23
|
|
BLAKE2b-256 checksum How to use checksums |
17af049e7f0de32d55a99ba0739055d3118afa681a61285a993f42a9774247b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|