Skip to main content

Colored text for terminal

Project description

TINGE

Output colored text in terminal

Setup and Installation

Using pip

pip install tinge

For developers / Contributors

  1. Clone this repository
git clone https://github.com/g-paras/tinge.git
cd tinge
  1. Install the module
python setup.py install

Installation Complete :thumbs_up:

Example

Foreground

from tinge import colored

print(colored("This is red text", color="red"))

Foreground and Background

from tinge import colored

print(colored("Green on white", color="green", on_color="white"))

Styling

from tinge import italic, underline, bold

print(italic("This is italic"))
print(underline("This is underlined"))
print(bold("This is bold"))

Styling with Foreground and Background

from tinge import colored, italic, underline, bold

print(colored(
    underlined("This is red on white",)
    color="red",
    on_color="white"))

print(colored(
    italic("This is italic",),
    color="green"))

Available Colors and Styles

Foreground(color) Background(on_color)
Black Grey
Red Red
Green Green
Yellow Yellow
Blue Blue
Magenta Magenta
Cyan Cyan
White White
Style Bold Italic Underline
Function Parameters Use for
colored text, color, on_color Colored text
italic text Italic text
underline text Underlined text
bold text Bold text
warn text Yellow Warning text
error text Red Error text
info text Blue Information text
success text Green Success text

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

Tinge-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

Tinge-0.0.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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