mirror of
https://github.com/kennethreitz/crayons.git
synced 2026-06-05 23:10:18 +00:00
24 lines
583 B
ReStructuredText
24 lines
583 B
ReStructuredText
Crayons: Text UI colors for Python.
|
|
===================================
|
|
|
|
This module is really simple, it gives you colored strings for terminal
|
|
usage. Included colors are ``red``, ``green``, ``yellow``, ``blue``, ``black``, ``magenta``, ``magenta``, ``cyan``, ``white``, ``clean``, and ``disable``.
|
|
|
|
If you call ``disable()``, all future calls to colors will be ignored.
|
|
|
|
Usage is simple
|
|
---------------
|
|
|
|
# red is red, white is white.
|
|
>>> print '{red} white'.format(red=crayons.red('red'))
|
|
red white
|
|
|
|
That's it!
|
|
|
|
Installation
|
|
------------
|
|
|
|
::
|
|
|
|
$ pip install crayons
|