Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ansi Colors String for Python
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ColorStr
.gitignore
README.markdown

README.markdown

ColorStr

String type object that override basic str, usefull for printing colored strings in console (if Ansi compatible)

Main str method are overrided and return colored string, other methods simply use plain str text (see source code for details) The % operator use some workaround to work with Colorstr, if you see strange behaviors please mail me, thanks.

To get plain text use Colorstr.repr()

Colors and attributes use same sintax of Ansi string: \033[m

Walter Da Col

Something went wrong with that request. Please try again.