Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
small and quick python color printing module. Overrides print function
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
color
.gitignore
License.rst
MANIFEST.in
Readme.rst
setup.cfg
setup.py

Readme.rst

Color

Color is a (very) small module for Python 3.2 and later. It allows printing colors to the console. It works on any ANSI terminal, and the Windows command line. To use it, simply use the print function as you always have, however you now have the option of passing color to it as well.

Example:

>>> from color import print
>>> print('hello', 'world!', color='blue')

Available colors are:

  • grey
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

Color does not currently support modifying background colors.

Something went wrong with that request. Please try again.