# hue **Repository Path**: mirrors_lepy/hue ## Basic Information - **Project Name**: hue - **Description**: Hue will help you to print awesomely in terminals. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Hue Hue provides a minimal and powerful interface to print colored text and labels in the terminal.
It doesn't have any external dependencies and works with Python 2 as well as Python 3. ## Supported Stuff Following styles are supported Following colors are supported Following labels are supported ### Usage First of all, import everything that Hue has to offer as follows: ```python from hue import * ``` Printing colored text is as simple as doing ```python print red('This string is red') ``` Easy right? But what if you want to print italic text? You can simply do this ```python print italic('This string is in italic') ``` You can also combine styles and colors ```python print bold(red('This string is bold and red')) ``` Output: And what is the use of those labels? I have been using these labels in projects as a minimal output schema.
If some error occured in your program or something else bad happened you don't need to print the whole line in red. With hue, you can simply do this ```python print bad('An error occured.') ``` Take a look at the output of all the labels #### List of all colors ``` white, grey, black, green, lightgreen, cyan, lightcyan, red, lightred, blue, lightblue, purple, light purple, orange, yellow ``` #### List of all styles ``` bold, bg, under, strike, italic ``` #### List of all labels ``` info, que, run, bad, good ``` Note: Windows does not support ANSI escape sequences so the colors will not be print in command prompt. ### License & Contribution The only thing I think Hue needs is windows support which I can't add atm because I have no windows machine and made since people were asking for it so its a quick one. So if you can start a pull request for windows support that would be great. Additional colors and labels will be appreciated too. Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.