Skip to main content

Make your life easier with automated inputs

Project description

Impauto

Make your life easier with automated inputs

Installation

pip install impauto

How to use it ?

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.0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page