Skip to main content

Utilities for print fancy text in terminal.

Project description

Console

This package provides necessary tools for printing text (with fancy styles if specified) in terminal. To use, import an instance of Console class by

from console import console

Text With Fancy Styles

Fancy texts are produced based on termcolor package. The usage of this package is similar to termcolor:

console.write_line('Hello World!', color='yellow')

However, console provides another way to print text base on a simple syntax, which is more flexible and powerful:

console.write_line('#{Hello}{red} #{World}{blue}{bold}!')

Here, the syntax is #{<text>}[{<text_color>}][<text_highlight>}][{<attributes_1>}]...[{<attributes_N>}].

Example of other fancy usages:

console.split('#{-}{red}#{-}{yellow}#{-}{blue}')

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

roma-console-1.0.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roma_console-1.0.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file roma-console-1.0.3.tar.gz.

File metadata

  • Download URL: roma-console-1.0.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for roma-console-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4c03a80af9abebab2f116b358880fca9ad5a709134ee6f0c53622a60bd83053a
MD5 d69daf5d655bd86341d74d1766d579bb
BLAKE2b-256 6680dae62a802a5dbda526f2fecd4220f83c908e353a347f9ec8eede5de62c40

See more details on using hashes here.

File details

Details for the file roma_console-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: roma_console-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for roma_console-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b9fa7e36ee3402007845b2ec9eb3919c7a9f2c9af98ee211c7644cb70549c2
MD5 54577d45ced5ff01a8f4659fedac3058
BLAKE2b-256 f1981f83f19f18be45af16b250756d826c42367621305265a917167cfd7b7a38

See more details on using hashes here.

Supported by

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