Package: dyepy
DyePyA Python module to work with anything related to colors.From styling the text to changing the foreground and background colors to converting colors to and from different color spaces, or defaulting them to Hexadecimal codes/values (as most Python modules support or only accept HEX codes), this module can easily help you with ALL of it. And yeah, it even has CSS4 color support (like named colors with their respective Hex values and some added colors - which are famous or are used/seen a lot).Detailed description/documentation for each and every class and function is written to make everything in the module understandable to every python developer. It is recommended to run this module - or a program this module is being imported in to be ran - on a command-line (likeBash,PowerShell,Command Prompt, etc.) for the module to work properly and give the most accurate and complete results (although results may vary with the command-lines, and some font styles may not work if they are not supported by the command-line)Go to:InstallationUsage (example)MetadataContributionChangelogsInstallationInstall this package using the following command:$python-mpipinstalldyepyThe entire code in written in pure python, without any packages, so you don't require any internal/external packages to run/use this module.
It is recommended to use thelatest stable version of python(Python 3.9.0, as of 12/10/2020).Usage (example)You can either simply run the file to use its own mini command-line (kinda) using:$pythondyepy.pyYou'll either need todownload dyepyor go to the installation folder and run the command from that folder*[that folder]:print(__import__('dyepy').__file__)Or you can simply copy/write this example program and run it:# Import tkinter for demonstatration of colorstry:fromTkinterimportTk,Button# Python 2except(ModuleNotFoundError,ImportError):fromtkinterimportTk,Button# Python 3# Import this module to the programimportdyepydefchange_bgcolor():"""Changes the app background color and returns None"""globalrootroot.configure(background=dyepy.Colors.getrandomcolor())root=Tk()root.title('Usage (Example)')root.configure(background=dyepy.Colors.BLACK)button=Button(root,text='Change color',fg=dyepy.Colors.WHITE,bg=dyepy.Colors.WINDOWSBLUE,command=change_bgcolor,height=10,width=50)button.grid(row=0,column=0,pady=50,padx=250)root.mainloop()Save this python file (say, asexample.py) and run it on a command-line using:$pythonwexample.pyMetaSFM61319-u/SFM61319-Avinash MaddikondaWanna contribute?Everyone is welcome to update my documentation and/or the python code. And you are the 'one' in everyone.To contribute, follow these steps:Fork itCreate your feature branch by enteringgit checkout -b feature/fooBaron yourGit BashCommit your changes by enteringgit commit -m "Add some foo bar, baz"Push to the branch by enteringgit push origin feature/fooBarCreate a new Pull Request (PR)That's it, you have contributed to the documentation and/or the code!If you have any major issues/doubts/feature requests or anything else which you don't want to do on your own or which you want to contribute without forking this repository, thenplease open an issueChangelogsChangelogs of the library can be found inCHANGELOGS.mdOnce again, thank you for spending your precious time here, it means a lot to me!