python-cli-ui
Note
This project is deprecated. Please use cli-ui instead.
Originaly readme below.
Documentation
Demo
Watch the asciinema recording.
Usage
$ pip install python-cli-ui
Example:
import ui
# coloring:
ui.info("This is", ui.red, "red",
ui.reset, "and this is", ui.bold, "bold")
# enumerating:
list_of_things = ["foo", "bar", "baz"]
for i, thing in enumerate(list_of_things):
ui.info_count(i, len(list_of_things), thing)
# progress indication:
ui.info_progress("Done", 5, 20)
ui.info_progress("Done", 10, 20)
ui.info_progress("Done", 20, 20)
# reading user input:
with_sugar = ui.ask_yes_no("With sugar?", default=False)
fruits = ["apple", "orange", "banana"]
selected_fruit = ui.ask_choice("Choose a fruit", fruits)
# ... and more!
Metadata
Release files for python-cli-ui 0.7.5
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 |
|---|---|---|---|---|
| python-cli-ui-0.7.5.tar.gz | 10.0 kB | Without provenance | Details for python-cli-ui-0.7.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_cli_ui-0.7.5-py3-none-any.whl | Python 3 | none | any | Details for python_cli_ui-0.7.5-py3-none-any.whl |
Total release size: 21.0 kB
Release files / python-cli-ui-0.7.5.tar.gz
| Download URL | python-cli-ui-0.7.5.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95db44a08cff347166d163f2f3e1239cf84351b055b64c3d0439fbd0e900dbbd
|
|
BLAKE2b-256 checksum How to use checksums |
f085e7d938afd918e27d84eb9aaaa4671b2236b9269e9ff059dda08e5b663546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / python_cli_ui-0.7.5-py3-none-any.whl
| Download URL | python_cli_ui-0.7.5-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
315e1655982708e5b5cfe7f3cef72a6c86fc682e2ce121faebfc58722af46614
|
|
BLAKE2b-256 checksum How to use checksums |
25673babc30b45ea745831bb31d7251d82c7c4f3f920a773463863cfa75cb7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for python-cli-ui 0.7.5
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.