Skip to main content

You may need to prompt the user for a numeric or a boolean value
However what if the user types something invalid ?
This library solves this difficult problem with simplicity
marianoinput has PenguinPrompt, with which you can use to easily get valid user input.
If user inputs invalid input, then it will re-prompt the user

Sample Code..

from marianoinput import PenguinPrompt
pen= PenguinPrompt()

age=pen.prompt_int_range("whats you age ?", 18,100)
height=pen.prompt_float_range("whats you height in meters ?",1,3)
yesno= pen.prompt_yesno("Do you wish to continue ?")
print(age, height, yesno)

If you like this library check out my other libary "marianodoc" for producing word docs
https://pypi.org/project/marianodoc/

Release files for marianoinput 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for marianoinput 0.0.6
File Interpreter ABI Platform
marianoinput-0.0.6-py3-none-any.whl Python 3 none any Details

Release files / marianoinput-0.0.6-py3-none-any.whl

Download URL marianoinput-0.0.6-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0e37fa937ada4e95dcdb377ea5ec1760c945b6457ae4670450dd692bb162a77
BLAKE2b-256 checksum
How to use checksums
4cacb960efa2a794bf6b7e056da9c8dd98b28aeab709064f1b10e2fcfe510f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page