Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Set of constants to simplify print with colors.

Project description

Colors Latest

Set of constants to simplify print with colors

How to use:

from colors import *
print(Red, 'Error')


The package creates a wrapper in the default print to remove the color on every print. So you don't have to worry to put the Color_Off.

print('This is ', Green, 'Green.')
print('This is not.')

This is Green.
This is not.

Unless you really wanted to

print(Blue, 'Color on', Color_Off, ' Color off')

Color on Color off


The wrapper removes single spaces strings (" ") so this:

print('Hello', 'World')

Will print: HelloWorld instead of Hello World.

Project details

Download files

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

Files for polidoro-py-colors, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size polidoro_py_colors-1.0.0-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page