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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: roma_console-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 080ccc21842e5c7ccf6c20ffd415cac4ddec831de63de974cb1a1ca613d5b5de
MD5 e06740e6940d645dc571f53fc5a5a9b3
BLAKE2b-256 e967c233f92340d140c467b1a63d237429b8a9a8ff6e3846c78de4eec0fd7582

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