Skip to main content

python-cli-ui

Note

This project is deprecated. Please use cli-ui instead.

Originaly readme below.

Documentation

See python-cli-ui 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)

Source distribution for python-cli-ui 0.7.5
File Size Uploaded
python-cli-ui-0.7.5.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-cli-ui 0.7.5
File Interpreter ABI Platform
python_cli_ui-0.7.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.7.5 This release

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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