A module that provides common functions for yes/no CLI queries
Project description
# yesno
Quite frequently I need to create simple CLI interfaces for the programs I write, every time I end up creating a different set of functions that never have a good set of satisfactory behaviours. For this reason I’m putting this project publicly, so I can use the same library for those purposes and improve it continusly.
Example:
>>> import yesno
>>> yesno.input_to_bool('Do you like pancakes', default='yes')
Do you like pancakes[yes]? no
False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msl09_yesno-0.1.0-py3-none-any.whl.
File metadata
- Download URL: msl09_yesno-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
245ea98d27ab0391565e57fa27665bd9d94315bb656dcc07c54739b2ce9f0ee1
|
|
| MD5 |
636440ab0a819ab62748b05f197501d5
|
|
| BLAKE2b-256 |
734be01bef40640e920407d875c088702536b61d903e05bd14dfd9c490a1dd2c
|