Skip to main content

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.

Built Distribution

polidoro_py_colors-1.0.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded py3

Supported by

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