GET A BINARY RESPONSE TO A QUESTION
A very boring input reading package/library. Takes a question string as an argument and returns true if y or yes is entered, false if n or no is entered, quits if q or quit is entered, and asks again if anything else is entered.
Entered characters are case insensitive, but you must enter the correct spelling or the first character of the word.
I find this useful for getting user input in a script and got tired of re-writing it in every program so decided to create a package for it.
INSTALLATION
pip install yorn
CLI USAGE
usage: yorn [-h] question
Answer yes or no to a question.
positional arguments:
question A question to ask.
optional arguments:
-h, --help show this help message and exit
PYTHON USAGE
from yorn import ask
question = "Would you like run my amazing program? "
if ask(question):
run_my_amazing_function()
else
print("Cookie monster is sad :-(")
Metadata
Release files for yorn 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yorn-0.0.6.tar.gz | 2.3 kB | Without provenance | Details for yorn-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yorn-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for yorn-0.0.6-py3-none-any.whl |
Total release size: 5.4 kB
Release files / yorn-0.0.6.tar.gz
| Download URL | yorn-0.0.6.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
966c8978d0def4d2e881086f4f54a5f2c601cbc0438c3874967e2daf4829f4d3
|
|
BLAKE2b-256 checksum How to use checksums |
9a2102824a5beb10b88cc7bf9a790b69ece00abba2c35031d3937629982b82d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / yorn-0.0.6-py3-none-any.whl
| Download URL | yorn-0.0.6-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53e40213a2e3db90b6716f87f5123581e928396a24ce8139d459f098e410fa8d
|
|
BLAKE2b-256 checksum How to use checksums |
d4ff0450387efc78832c67f3ee655e1495995ec1b2d2918a2b166a4958710d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yorn 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.