Python Package used to print rgb colors to the console
Project description
- Athena Color Package - v3.1.0
Python Package used to print rgb colors to the console
Details and features
- Support for Fore- and Background colours
- Support for Underline, Bold, Italic and other Text Styling
- Custom rgb class with full support for math operators
- All basic and extended web colors are available as the default predefined Fore and Back colors.
- Access to the full rgb spectrum to be printed to the console
- Callable Styling (documentation under development)
Usage
The following import will print the underlying python code to console:
import AthenaColor.Help.readme
# *-* Base Needed imports *-*
from AthenaColor import (
Fore, # All predefined Foreground colors
Back, # All predefined Background colors
Style, # All Style makeups
rgb
)
# *-* Use the objects in an f-string *-*
print(
f"""||| {Style.Bold}Welcome to the AthenaColor Package!{Style.Reset} |||
- The {Fore.HotPink}Fore.HotPink{Style.Reset} Changes the Foreground color
- The {Back.Indigo}Back.Indigo{Style.Reset} changes the background color
- Combinations like {Back.Teal}{Fore.LightGoldenRodYellow}Back.Teal + Fore.LightGoldenRodYellow{Style.Reset} are also supported
- Using {Fore.custom(rgb(123,45,67))}Fore.custom(rgb(123,45,67)){Style.Reset} will allow you to use custom rgb colors
"""
)
# *-* Create your own rgb objects *-*
custom_color = rgb(r=86, g=54, b=186)
print(
f"""
{Fore.custom(custom_color)}Text with a newly made rgb object{Style.Reset}
{Fore.rgb(r=186, g=54, b=86)}Text without first making a custom rgb object{Style.Reset}
"""
)
# *-* Print out of all colours and Style Formats *-*
from AthenaColor.Help import (
AllTable,
AllBoxes
)
print(
f"""
{Style.Bold}The following is a full list of all predefined colors.
Together with all Style makeups found in AthenaColor.ConsolePrinter:{Style.Reset}
"""
)
AllTable()
print(
f"""
{Style.Bold}The following is a small view of all predefined colors:{Style.Reset}
"""
)
AllBoxes()
Links
Project files can be found at:
Pip installs by the following command:
pip install AthenaColor
Made By Andreas Sas, 2022
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AthenaColor-3.1.0.tar.gz
(30.0 kB
view hashes)
Built Distribution
Close
Hashes for AthenaColor-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7e98520902f6825767f741aa1b709112a567e4ba7f525ce38657bd21f5ada41 |
|
MD5 | 98b8f078bc2510810f622803d791c445 |
|
BLAKE2b-256 | c4a6f602b44f9ade6b0fba341a19300d0be74ab08b9366f0d91d6bd913ba41c1 |