Skip to main content

- AthenaColor -

pypi GitHub license Discord Downloads

AthenaColor Logo

Package Details

Details and features

A No Dependency Python package do display text 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 available 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 documentation
    • 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

Project files can be found at:


Disclaimer

With No Dependency, the standard library is not counted as a dependency


Made By Andreas Sas, 2022

Metadata

Release files for AthenaColor 7.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for AthenaColor 7.0.2
File Interpreter ABI Platform
AthenaColor-7.0.2-py3-none-any.whl Python 3 none any Details

Release files / AthenaColor-7.0.2-py3-none-any.whl

Download URL AthenaColor-7.0.2-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4436b5516e3503150cd8aa996e2eeae97b99005d3c3490e63e4091f3dd2bbd1
BLAKE2b-256 checksum
How to use checksums
852b922f00b246d3fd8b964dcac1cb305376ca9cd223a00d9f49d81e4161c804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

7.0.2 This release

1 release file

7.0.1

2 release files

7.0.0

2 release files

6.2.0

2 release files

6.1.0

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.1.3

2 release files

5.1.2

2 release files

5.1.1

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.2.0

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page