Colorthon is a powerful Python package that provides a simple and intuitive way to work with colors in the terminal.
- Easy-to-use syntax for applying colors and background colors to text in the terminal.
- Supports a wide range of colors and background colors.
- Lightweight and efficient implementation.
You can install Colorthon using pip:
pip install colorthon
# linux
pip3 install colorthon
To start using Colorthon, import the Colors and Back modules:
from colorthon import Colors, Back
Now, you can use the color and background color codes provided by Colorthon. For example, you can define the following color variables:
from colorthon import Colors, Back
# text color
red = Colors.RED
green = Colors.GREEN
blue = Colors.BLUE
black = Colors.BLACK
magenta = Colors.MAGENTA
yellow = Colors.YELLOW
cyan = Colors.CYAN
white = Colors.WHITE
# Text background Color (back text)
on_red = Back.RED
on_green = Back.GREEN
on_blue = Back.BLUE
on_yellow = Back.YELLOW
on_white = Back.WHITE
on_magenta = Back.MAGENTA
on_cyan = Back.CYAN
on_black = Back.BLACK
# Reset Format
reset = Colors.RESET
These variables allow you to easily apply colors and background colors to your text. Here's an example usage:
print(f"{red}This text is red.{reset}")
print(f"{green}This text is green.{reset}")
print(f"{on_red}This text has a red background.{reset}")
print(f"{on_green}This text has a green background.{reset}")
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. Make sure to read our Contribution Guidelines before getting started.
This project is licensed under the MIT License. Contact
If you have any questions or need support, feel free to reach out to us at [email protected] We'd be happy to assist you!
other package :
Blockthon - Generate Easy and Fast Private Key & Mnemonic and Decimal , Binary & seed (Bytes) , Compress and UnCompress address Bitcoin , Ethereum , TRON, Dogecoin, Litecoin, zcash, Digibyte, Dash, Qtum, Ravencoin, BitcoinGold
programmer and Owner Website : Mmdrza.Com