Package: termilighter
TermilighterSupport by giving stars :star:  ongithub- Follow for more.A small module that allows you to customize print statements or output text with different colors. You can use any color type from the followingxterm,rgb, andhexato select a color for your output text.Requirements:Python version >=3DependenciesThis project has no dependencies till now and can be used withwindows, andLinuxoperating system.InstallationYou can install it by running following command on your terminal.pipinstalltermilighterUsageTo use this package, importlogmethod fromtermilighterinside your required python script .fromtermilighterimportlogNow, you can uselogto output colored text on terminal.Example - 01: Default MessageInputfromtermilighterimportloglog.message(text="Message with custom foreground color.")OutputExample - 02: Message with CustomForegroundColorInputlog.message(text="Message with custom foreground color.",color_type="hex",fg="#2a9d8f")OutputExample - 03: Message with CustomBackgroundColorInputlog.message(text="\nMessage with custom background color.",color_type="hex",bg="#d9ed92")OutputExample - 05: Message with CustomForeground&BackgroundColorInputlog.message(text="\nMessage with custom foreground and background color.",color_type="hex",fg="#dd6e42",bg="#eff7f6",)OutputExample - 06: Message withPrefixand CustomTagInputlog.message(text="Message with Prefix and custom-tag.",prefix=True,tag="custom-tag")OutputExample - 07: Message withPrefix, CustomTagand Customtag-colorInputlog.message(text="Message with Prefix, custom-tag and custom tag color.",prefix=True,tag="custom-tag",dc=49,)Output:Available FeaturesI build this module with flexibility to select any color type betweenxtermbit integer,rgbcolor tuple andhexacolor code. You can use any color type to customize the output text on your terminal. There are some default methods as well which you can directly use to output respective text. Those methods are as follow;log.message()- You can put any string inside the curly brackets to display your text on the terminal. Default color isput color.log.error()- You can use this method to outputERRORon your terminal.log.warning()- You can use this method to outputWARNINGon your terminal.log.success()- You can use this method to outputSUCCESSstatus on your terminal.log.info()- You can use this method to output any kind of importantINFOon your terminal.log.highlight()- If you want to highlight any specific part in your print statement then, you can use this method inside thef-stringor.formatoption of print statement.Common Options:text- Can provide any string value.Default:None.color_type- Can provide any color type fromxterm,rgbandhexa.Default:xtermfg- Can provide any foreground color with respect to its color type. For Example:Forxterm- you can provide any integer between1 and 255Forrgb- You can providergbtuple(r, g, b).Forhexa- You can provide HEX color code#000000bg- Same as foreground color you can provide any value with respective tocolor_typeargument.prefix- Can be used in special method likelog.error()- Prefix =Truewill display[ ERROR ]prefix at start of your output text.Default:False.tag- Can customize prefix tag as well.Default:None.dc- Default color to pass an argument to a method or it can be used to set the color for your prefix tag.Other featuresrgb_to_hex(rgb:tuple=(0, 0, 0))hex_to_rgb(hex:str = "#000000")rgb_to_xterm(rgb:tuple=(0, 0, 0), val = False)hexa_to_xterm(hex:str = "#000000" val_ = False)custom_color_from_rgb(fg=None, bg=None)custom_color_from_hex(fg=None, bg=None)custom_color_from_xterm(fg=None, bg=None)ContributingIf you any suggestion to improve this package, feel free to createissuesongithub. Just createPRSupport by giving stars :star:  ongithub- Follow for more.CreditsBuild with Love :heart:.Contributors