Make your life easier with automated inputs
Project description
Impauto
Make your life easier with automated inputs
Installation
pip install impauto
How to use
The Basic way to use this module
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated(154)
# use your script as normal
def syracuse(x):
step = 0
while x != 1:
x = (3 * x + 1) if x % 2 else (x // 2)
step += 1
return step
n = int(input("Enter a number: "))
print(syracuse(n))
You can also hide terminal input messages
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated(1, 2, 3, show_message=False)
By default, It will raise a exception if there is more input than value given. To make input repeats indefinitely, you can use this code
from impauto import Automated
# Each argument passed will be enter as a str to the input function.
Automated("a", "b", forever=True)
Thanks for using Impauto
License
© 2020 copyright Edhyjox
This repository is licensed under the MIT License. See LICENSE for details.
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
impauto-1.1.0.tar.gz
(2.3 kB
view details)
File details
Details for the file impauto-1.1.0.tar.gz
.
File metadata
- Download URL: impauto-1.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145a5987aa41f8bb85b1986d00d003eee93192c5985d795746761cbd49c9412b |
|
MD5 | f4464bf57cf68e6234c99725473e2857 |
|
BLAKE2b-256 | feb235a0e9d2a85c8e3834be02e01ac24f38a9ce2906528b4b718b73fa1a64f9 |