Skip to main content

A Python module to apply ANSI, RGB and HEX colors in terminal output.

Project description

gp

gpColor

gpColor is a Python module for applying ANSI, RGB and HEX colors in terminal output.

Installation

install via pip

pip install gpColor
git clone https://github.com/gpbot-org/gpColor
cd gpColor

python setup.py install

Usage

from gpColor import colorize as color

'''how to use text color'''
print(color("This is bright red text", font='bright_red'))
print(color("This is RGB text", font=(255, 0, 0)))
print(color("This is HEX text", font='#FF5733'))

'''
>_ How to use background color with text color

text       : font
background : back
'''
print(color("This is blue text with yellow background", font='blue', back='yellow'))
print(color("This is RGB text", font=(255, 0, 0), back=(255,255,255))
print(color("This is HEX text", font='#FF5733', back='#FFFFFF'))

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

gpcolor-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

gpColor-1.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file gpcolor-1.0.1.tar.gz.

File metadata

  • Download URL: gpcolor-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gpcolor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 40240b0c1cb9f2b7e05288abdd9c8f343b11ca5bc5b3ae02207aa66b128da087
MD5 293469bf24a74486e019ccf8dc81d951
BLAKE2b-256 e3e7ea66648c3cbb4e5db8889c24f93e5d045db3aff4f692b89d1c1b643c46c1

See more details on using hashes here.

File details

Details for the file gpColor-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gpColor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gpColor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85335292393096a2408f126e0679c5a562cce5635958a50d3fbe96f3851af518
MD5 61a1d28f2afc941e2973c630a5d6e2b3
BLAKE2b-256 e203d23090b71cece9caa8e6bacffed0eca1da75d1a506e4a287ab80bef1662b

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