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')

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

SIDE EFFECTS

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

print('Hello', 'World')

Will print: HelloWorld instead of Hello World.

Project details


Release history Release notifications

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page