A simple coloring util for better output visibility
Project description
ColorME
A lightweight Python package to add color and character to your command-line output.
Table of Content
Description
This package will house a utility package that will help the users to be able to customize and colorize their function outputs to better standout in their terminal.
Features
- Support 8 colors and 4 styles
- Useful for CLI tools, scripts and developer logs
- Cross-platform via
termcolor
Installation
Install locally for development:
git clone https://github.com/Abdulrahman-K-S/colorME.git
cd colorME
pip install -e .
Or use it in your project:
pip install git+https://github.com/Abdulrahman-K-S/colorME.git
Usage
from colorme import color_text
# Basic output
print(color_text('Hello World!', color='green'))
# With attributes
print(color_text('WARNING!', color='red', attrs=['bold', 'underline']))
Supported Colors & Attributes
Colors:
grey, red, green, yellow, blue, magenta, cyan, white
Attributes:
bold, underline, reverse, blink
License
This project is licensed under the Apache License 2.0.
Future Work
- Add a support for background colors
- Add CLI features such as
colorme 'hello' --color blue --attrs bold - Add more customization
Contributors
A huge thank you to all the contributors!
If you want to be a contributor check the CONTRIBUTING.md file.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file color_cli-0.1.0.tar.gz.
File metadata
- Download URL: color_cli-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8461ea5deec253b3e1b1858cc49346e2bae56aab1d52277f50df901254257c70
|
|
| MD5 |
d99a207e899fa89b740ed40d1f773b05
|
|
| BLAKE2b-256 |
44d40849fda3c2896ffbf256b3e4faa80296607d382317544453489a021cfad4
|
File details
Details for the file color_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: color_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49222f360599978ac6f7b45963b8d11947d7fff2dd556cbab9061c1ec399a290
|
|
| MD5 |
7956258c190828069b9a2e15b7690290
|
|
| BLAKE2b-256 |
6ee8f8873b777e058d190224db09f7853cfc0aa3c1794262a614ac015688709c
|