A small ANSI color library for Console Colours. Primarily designed to work with PyCharm
Project description
- Athena Color Package - v1.0.0
A little package which allows you to use ANSI codes to print colour to the console.
Details and features
- Support for Fore- and Background colours
- Support for Underline, Bold, Italic and other Format styles
Usage
The code below is an example:
from AthenaColor import (
Format, # Holds content like the RESET, BOLD and other changes
Foreground,
Background,
Colors # These are just the colour codes, not actually usable on its own
)
# *-*
# Use the objects in an f-string
# *-*
print(f"{Format.Bold}Hello there!{Format.Reset}")
print(f"{Foreground.Olive_Dark}This changes the foreground color{Format.Reset}")
print(f"{Background.Purple_Dark}This changes the background color{Format.Reset}")
print(f"{Background.Teal_Dark}{Foreground.Yellow_Light}You can also combine them{Format.Reset}")
text_style = Background.Blue_Dark + Foreground.Violet + Format.Underline
print(f"{text_style}This works as well!{Format.Reset}")
# *-*
# Use the objects in a concat-ed string
# *-*
print(Format.Bold + "Hello there!" + Format.Reset)
# *-*
# To see all available colors and format styles, the following functions will print out all the available colors and the available
# *-*
from AthenaColor.main import (
all_Formats,
all_Backgrounds,
all_Foregrounds
)
all_Foregrounds()
all_Backgrounds()
all_Formats()
All Colors available:
- Black
- Black_Light
- Grey_Dark
- Grey
- Grey_Light
- White_Dark
- White
- Red_Dark
- Red
- Red_Light
- Green_Dark
- Green
- Green_Light
- Yellow_Dark
- Yellow
- Yellow_Light
- Blue_Dark
- Blue
- Blue_Light
- Purple_Dark
- Purple
- Purple_Light
- Teal_Dark
- Teal
- Teal_Light
- Violet_Dark
- Violet
- Violet_Light
- Orange_Dark
- Orange
- Orange_Light
- Cyan_Dark
- Cyan
- Cyan_Light
- Pink_Dark
- Pink
- Pink_Light
- Olive_Dark
- Olive
- Olive_Light
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-1.0.0.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for AthenaColor-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 558585131bcff1230af148064f12f652a8a3f074633180d8fce965fee42c66fe |
|
MD5 | 6f38c45eb29ad97a3e4aa26d9da7feca |
|
BLAKE2b-256 | 89120b4385bc590ae89199788891aee5c08d7b02465984de1ad1fd68518cba61 |