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 details)
Built Distribution
File details
Details for the file PyTerminalColor-1.0.0.tar.gz
.
File metadata
- Download URL: PyTerminalColor-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50d36b32ad3d33bd75703723463509eb6f0b8a465ca62ddf595fc997fe2ba049 |
|
MD5 | 89dea06270d3ab0bbd27a8f16b2f1959 |
|
BLAKE2b-256 | 69afdcc0ee81b4ed1d06172648c62bd9a292bc5a583ffba46399bce4c91637d5 |
File details
Details for the file PyTerminalColor-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: PyTerminalColor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a2bcdf05d411c1d84afd761bf0981123a9ee9f978e244e8f1400720ea2311b |
|
MD5 | f69a39d185f74e718562260ca2a670a6 |
|
BLAKE2b-256 | 20b84a80f8f01868f563fd12f135713657878ead7141fc3bfa31251044014537 |