Skip to main content

A small ANSI color library for Console Colours. Primarily designed to work with PyCharm

Project description

- Athena Color Package - v1.0.1

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

Links

Project files can be found at:

Pip installs by the following command:

pip install AthenaColor

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

Uploaded Source

Built Distribution

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

AthenaColor-1.0.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: AthenaColor-1.0.1.tar.gz
  • Upload date:
  • Size: 17.8 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

Hashes for AthenaColor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fb4cef77b98fc34bc0324be0b28001573957cc923eb07fd338433d4cc7f16e1c
MD5 46650f462df7b9acf0b1de1e3c220a24
BLAKE2b-256 9070c55d8cf322c99cd6dd3066c7217061d95020ed2cb0f86c2f262fb37eb766

See more details on using hashes here.

File details

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

File metadata

  • Download URL: AthenaColor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.8 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

Hashes for AthenaColor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a03b8ad37a17d4e89ad119f582cdf3c98532f4d1d76a1132f24ebd4511914956
MD5 5bc87b4632af14bea19a1d8d9f8ccfe6
BLAKE2b-256 98059c3c7f0ce385750ac93688c65f8ac13e6d559879cc1245727c9078baf18d

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