Skip to main content

Streamlined cross-platform Textual UI

Project description

uiblack

Streamlined cross-platform Textual UI.

Attractive console output should not be walled behind libCurses! It should not take dozens of lines just to describe ordinary things like menus or basic prompts. Lastly, attractive console applications should not be limited to only Linux & OSX.

Those are the guiding thoughts behind uiblack. A truly cross-platform, dead simple, concise library that handles several mundane development tasks all at once.

Installation

OS X, Linux & Windows:

pip install uiblack

Usage examples

Keep it simple. Just import, instance the library, and use it!

from uiblack import UIBlack
ui = UIBlack()
ui.clear()

result = ui.ask_yn("This is the question?")
ui.print_center(result)

for items in range(0, 5000, 2):
    ui.load_bar("This is the title of a bar", items, 5000)

for thing in range(0, 40):
    ui.console(f"{thing}")

ui.set_main_title("this is a test title")

result = ui.ask_list("Question text goes here",
    ["first item here", 
     "this is the second item", 
     "and this is the third"],
)

ui.warn("warning here")
ui.error("error here")
ui.notice("Just a notice")

ui.console("this simulates regular print() command")
ui.console("And you can see, it scrolls output like the console.")

Meta

Brandon Blackburn – PGP Encrypted Chat @ Keybase

Distributed under the Apache 2.0 license. See LICENSE for more information.

TL;DR: For a human-readable & fast explanation of the Apache 2.0 license visit: http://www.tldrlegal.com/l/apache2

https://github.com/BlackburnHax/uiblack

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uiblack-1.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

uiblack-1.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file uiblack-1.0.1.tar.gz.

File metadata

  • Download URL: uiblack-1.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for uiblack-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5fd297e766a04fd637648edddb13daa253289cad27ab28d9c16da02cd61e69a5
MD5 e320a335c7c30c2dfa3b5777f1608b6b
BLAKE2b-256 3f9d1c3792d44161c6ee616eb18a27ce8f814f0bf19b0bc00fc27007263412ad

See more details on using hashes here.

File details

Details for the file uiblack-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: uiblack-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for uiblack-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5630ab61c5e242e0aa15e82058e87bc16993a74e1f1c9b24a5d04763c8f7455
MD5 bb9d0cbcd4abd015f5ec53538d8c2fa5
BLAKE2b-256 5a00440dd33d4ec6bef7ba4440585f8814f3b39036a2532e1781761afdd963ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page