Skip to main content

Add colors to the terminal

Project description

pycolorise

  • Add colors/fonts to the terminal
  • The terminal colorizer is a tool that improves the visual experience of terminal applications

python badge

CodeQL Generic badge Github License Windows Linux

Join Official Discord Server for more guidance !

Features

  • It provides templates for foreground, background colors and font styles for re-usability.

  • It supports 24-bit true colors, RGB, and hex colors, providing a wide range of color options.

  • The colorizer is built using object-oriented programming principles, making it highly customizable.

  • Developers can easily create their own color schemes to suit their needs.

  • The colorizer has no dependencies, making it easy to integrate into any project without adding unnecessary overhead.

Installation

For stable version, use below command

pip install -U pycolorise

For latest/beta version, install it using git

pip install -U git+https://github.com/Modern-Realm/pycolorise

Quickstart

Create a file with '.py ' extension, Like: main.py

# For foreground colors
from pycolorise.colors import *
# For background colors
from pycolorise.bgColors import *
# For font styles like: bold, italic, etc
from pycolorise.styles import *

print(Purple("• Foreground colors:"))
print(
    Red("red"), BrightRed("bred"),
    Green("green"), BrightGreen("bgreen")
)

print(Purple("\n• Background colors:"))
print(
    BgRed("red"), BgBrightRed("bred"),
    BgGreen("green"), BgBrightGreen("bgreen")
)

print(Purple("\n• Fonts:"))
print(
    Bold("bold"), Underline("underline"),
    StrikeThrough("strike through"),
    Italic("italic"), Framed("framed")
)

Output:

output

Useful Links:


Contact Us

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pycolorise-1.0.0-py3-none-any.whl (12.3 kB view hashes)

Uploaded Python 3

Supported by

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