

GitHub - UltimateHackers/hue: Hue will help you to print awesomely in terminals.
source link: https://github.com/UltimateHackers/hue
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Hue
Hue provides a minimal yet powerful way to print colored text and lables in terminal.
It doesn't have any dependencies and works with python2 as well as python3.
Supported Stuff
Following styles are supported
Following colors are supported
Following lables are supported
Usages
First of all, import everything that Hue has to offer as follows:
from hue import *
Now printing colored text is as simple as doing
print red('This string is red')
Easy right? But what if you want to print italic text? You can just do
print italic('This string is in italic')
You can also combine styles and colors
print bold(red('This string is bold and red'))
Output:
And what is the use of those lables?
I have been using these lables in projects to provide a minimal and informative 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. That doesn't look good. With hue, you can simply do this
print bad('An error occured.')
Take a look at the output of all the lables
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 lables
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 lables will be appreciated too.
This work is licensed under a Creative Commons Attribution 4.0 International License.
Recommend
-
110
Blazy Blazy is a modern login page bruteforcer.
-
161
-
112
noctu.vim A Vim color scheme for 16-color terminals Actually, this color scheme has a more specific use. Rather than specifying particular color values for Vim, I prefer to have consistent colors across all soft...
-
109
ReconDog - Recon Dog is an all in one tool for all your basic information gathering needs.
-
103
XSStrike is an advanced XSS detection and exploitation suite.
-
126
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
-
127
README.md Arjun Arjun is a python script for finding hidden GET & POST parameters using regex and bruteforce. Dependencies requests threading Usa...
-
63
README.md Decodify It can detect and decode encoded strings, recursively. Lets take this string : s0md3v and encode it in Base 64 czBtZDN2 Now...
-
84
README.md nano Nano is a family of PHP webshells which are code golfed to be extremely stealthy and efficient. Put it on watch maybe, I will continue to upload more webshells in here....
-
9
Briofita Colorscheme Briofita is a colorful dark background Vim colorscheme. Briofita was first released in 2012 on the Vim website (vim.org). Current version is 4.1.0. Since the fi...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK