Skip to main content

A simple coloring util for better output visibility

Project description

Color CLI

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

Use the package in your project:

pip install color_cli

Install locally for development:

git clone https://github.com/Abdulrahman-K-S/color-CLI.git
cd colorME
pip install -e .

Usage

from color_cli 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 color-cli '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

color_cli-0.1.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

color_cli-0.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file color_cli-0.1.3.tar.gz.

File metadata

  • Download URL: color_cli-0.1.3.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

Hashes for color_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ecea5debf876f48f39010e27fea9d3577d6532739254faaffb3ca11873da47a9
MD5 bff437be73d8daf00efd4ef4044dfe05
BLAKE2b-256 c3465402b06e6e0afe1a7d43ff41c2a57a7135451e47c5dd04c54bba52e9b43f

See more details on using hashes here.

File details

Details for the file color_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: color_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for color_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59b7327e5f1c318521c13f9a0fd19088a9686ec92019a1983c772c1eab4371ee
MD5 16e9646367abb8b7355e6eb1473e1f7f
BLAKE2b-256 40755ff03bf438fb7ebedf6f8871640e29c6b14bfaf0ce85910a27539abf5975

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page