Colored text for terminal
Project description
TINGE
Output colored text in terminal
Setup and Installation
Using pip
pip install tinge
For developers / Contributors
- Clone this repository
git clone https://github.com/g-paras/tinge.git
cd tinge
- 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)
Built Distribution
Tinge-0.0.3-py3-none-any.whl
(4.2 kB
view hashes)