Package to support full usage of RGB colors in the Console.
Project description
- AthenaColor -
Package Details
Details and features
A No Dependency Python package do display stext styling in a console.
- Next to the full ability to use ANSI styling options, commonly used HTML color names are defined as default colors for Fore- and Background color styling
- The color option are avaible permitting the console can take advantage of RGB ANSI codes
- For a full list of all 140 out of the box available colors, go to the full documentatio
- By using the
RGB
object, you have access to print any RGB color to the console you desire
- Uses a similar syntax to Colorama, but also allows for nested function patterns
Python Version
- Supported Python versions: 3.7, 3.8, 3.9, 3.10
- Other older versions of Python are not currently supported.
- These older versions will probably not be supported by @Andreas Sas himself, but if you want to contribute to the project and make this package compatible with older versions of Python, Pull requests are always welcome.
Quick Examples
Inline styling:
from AthenaColor import Fore, Style
print(
f"""
{Style.Italic}{Fore.SlateGray}AthenaColor Example:{Style.NoForeground}
{Fore.Red}This is an of {Style.Bold}EXAMPLE{Style.NoBold} nested styling{Style.NoForeground}
{Fore.SlateGray}As you can see, the color needs to be manually returned here{Style.NoForeground}{Style.NoItalic}
"""
)
Nested Styling:
from AthenaColor import ForeNest, StyleNest
print(
StyleNest.Italic(ForeNest.SlateGray(
"AthenaColor Example:",
ForeNest.Red(
"This is an",
StyleNest.Bold("EXAMPLE"),
"of nested styling"
),
"As you can see, the correct color returns here by itself",
sep="\n"
))
)
Documentation
Full documentation can be found at: directiveathena.com/athenacolor-docu (redirect to Obsidian.md publish site)
Install
To install the package in your Python environment
pip install AthenaColor --upgrade
Links
Project files can be found at:
Disclaimer
With No Dependency, the standard library is not counted as a dependency
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-5.1.0.tar.gz
(33.1 kB
view hashes)
Built Distribution
Close
Hashes for AthenaColor-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4283355cc11d7cb7ff73109c3ab751a6e6b5ef078935275eb340dd20a1357d10 |
|
MD5 | 7cf987ab811c3e2090b92006c29d152d |
|
BLAKE2b-256 | 1685d738a96ee15279852281c4ec83858004c18addb5d44decd364febfa8cd2e |