Skip to main content

Package to support full usage of RGB colors in the Console.

Project description

- AthenaColor -

pypi GitHub license Discord Downloads

AthenaColor Logo

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 @AndreasSas 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, a reset of color doesn't need to happen as this is done automatically",
       sep="\n"  
   ))  
)

Documentation

Full documentation can be found at: directiveathena.com/athenacolor-docu (redirect to Obsidian.md publish site) (Reminder, the documentation is still under heavy development)


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


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.1.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AthenaColor-5.1.1-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file AthenaColor-5.1.1.tar.gz.

File metadata

  • Download URL: AthenaColor-5.1.1.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for AthenaColor-5.1.1.tar.gz
Algorithm Hash digest
SHA256 4a0d958438733b1102980ca2843c4ea5012bdfea1472be95547651be41673303
MD5 13d573b80981e4c12538faa8f35016c0
BLAKE2b-256 df7b6f07d6b5f607764056d3eb71f78f7cd0ccb8058758b38998912dc8050608

See more details on using hashes here.

File details

Details for the file AthenaColor-5.1.1-py3-none-any.whl.

File metadata

  • Download URL: AthenaColor-5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for AthenaColor-5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 664c296dc45c52007dea72ba1f68ef9086161074fbe350836fb822e7e755b62f
MD5 e8c82bbf2cd5c961ca23179af9acacaa
BLAKE2b-256 439279cfebaa94cbe4ef4c935b5a7590c160007bca0b35f9187d1386d4d9b68f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page