{"repo":"timofurrer/colorful","free":true,"listed":false,"github":"https://github.com/timofurrer/colorful","clone":"git clone https://github.com/timofurrer/colorful.git","description":"Terminal string styling done right, in Python :snake: :tada:","language":"Python","stars":540,"topics":["python","python3","terminal","string","colors","linux","windows","macosx","console","ansi"],"license":"MIT","category":"cli-tools","readme_excerpt":"colorful Terminal string styling done right, in Python :tada: Here's a tease Key Features expressive and consistent API (docs) support for different color modes (8 ANSI, 256 ANSI, true colors) (docs) support for predefined awesome styles (solarized, ...) (docs) support for custom color palettes (docs) support nesting styles (docs) support for different platforms (using colorama on Windows) context managers for clean color mode, color palette or style switch (docs) support len() on colored strings (docs) support color names from X11 rgb.txt (docs) no dependencies Usage colorful supports all major Python versions: 3.5 , 3.6 and 3.7 , 3.8 , 3.9 , 3.10 , 3.11 , 3.12 . We recommend to use the latest version released on PyPI: colorful does not require any special setup in order to be used: Note: the entire documentation assumes colorful to be imported as cf . See the Style a string section for more information! Color modes These days terminals not only support the ancient 8 ANSI colors but often they support up to 16 Million colors with true color . And if they don't support true color they might support the 256 ANSI color palette at least. colorful supports the following color modes: no colors / disable ( cf.NO COLORS ) 8 colors - 8 ANSI colors ( cf.ANSI 8 COLORS ) 256 colors - 256 ANSI color palette (8bit cf.ANSI 256 COLORS ) 16'777'215 colors - true color (24bit, cf.TRUE COLORS ) By default colorful tries to auto detect the best supported color mode by your terminal. Consult cf.","default_branch":null,"files":null,"tree":[],"storefront":"/r/timofurrer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/timofurrer/colorful/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}