Make your program attractive by using TerminalColors.
Project description
PyTerminalColor
Create attractive python progams with foreground, background colors and styles.
Installation
Using PyPi
- with pip
pip install PyTerminalColor
Using git
-
clone repo
git clone https://github.com/dmdhrumilmistry/PyTerminalColor.git
-
Change to PyTerminalColor repo directory
cd PyTerminalColor
-
install PyTerminalColor
pip install -e .
Verify installation
python -m PyTerminalColor
Features
Foreground Colors
: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, LIGHT_GRAY, CYANBackground Colors
: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, LIGHT_GRAY, CYANStyles
: NORMAL, BOLD, ITALIC, UNDERLINE
Usage
- Import and create an TerminalColor object.
from PyTerminalColor.TerminalColor import TerminalColor
colorize = TerminalColor(fgcolor='YELLOW', bgcolor='RED', style='BOLD')
- print colored text with default object values
colorize.cprint('TerminalColor')
- print colored text with other values
colorize.cprint('TerminalColor',use_default=False, fgcolor='YELLOW', bgcolor='BLACK', style='ITALIC')
cprint default values:
use_default = True fgcolor = 'LIGHT_GRAY' bgcolor = 'BLACK' style = 'NORMAL'
License
MIT License
Have any Issues?
Create an issue from Issues Tab
Leave A Star⭐
Connect With Me on:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyTerminalColor-1.0.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for PyTerminalColor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a2bcdf05d411c1d84afd761bf0981123a9ee9f978e244e8f1400720ea2311b |
|
MD5 | f69a39d185f74e718562260ca2a670a6 |
|
BLAKE2b-256 | 20b84a80f8f01868f563fd12f135713657878ead7141fc3bfa31251044014537 |