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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file AthenaColor-1.0.0.tar.gz.
File metadata
- Download URL: AthenaColor-1.0.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf87706eb4563c32be5e6eef6cb4868d874e474a5b297b6579bf51e1cfb30c9a
|
|
| MD5 |
c96be4c5eb43955387353af7ffd2bd4f
|
|
| BLAKE2b-256 |
4fe7aae077a4584799733d3f80cec53b14c3c1e69440647a60327b9f8d41fc07
|
File details
Details for the file AthenaColor-1.0.0-py3-none-any.whl.
File metadata
- Download URL: AthenaColor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
558585131bcff1230af148064f12f652a8a3f074633180d8fce965fee42c66fe
|
|
| MD5 |
6f38c45eb29ad97a3e4aa26d9da7feca
|
|
| BLAKE2b-256 |
89120b4385bc590ae89199788891aee5c08d7b02465984de1ad1fd68518cba61
|