Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit bb9f734

Browse files
author
DirectiveAthena
committed
Feature: Addition of __main__.py file
1 parent 17ac883 commit bb9f734

File tree

5 files changed

+48
-66
lines changed

5 files changed

+48
-66
lines changed

Docu/Version History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# v3.0.3
2+
- Updated links to exsist under the new DirectiveAthena Organization on GitHub
3+
- new `__main__.py` file to execute the readme function when the Package is executed through the terminal with the following command : `python -m AthenaColor`
4+
5+
---

Docu/VersionHistory/v3.0.3.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/AthenaColor/Help/readme.py

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,51 @@
1-
# *-* Base Needed imports *-*
2-
from AthenaColor import (
3-
Fore, # All predefined Foreground colors
4-
Back, # All predefined Background colors
5-
Style, # All Style makeups
6-
rgb,
7-
)
8-
9-
# *-* Use the objects in an f-string *-*
10-
print(
1+
def readme():
2+
# *-* Base Needed imports *-*
3+
from AthenaColor import (
4+
Fore, # All predefined Foreground colors
5+
Back, # All predefined Background colors
6+
Style, # All Style makeups
7+
rgb,
8+
)
9+
10+
# *-* Use the objects in an f-string *-*
11+
print(
1112
f"""||| {Style.Bold}Welcome to the AthenaColor Package!{Style.Reset} |||
1213
1314
- The {Fore.HotPink}Fore.HotPink{Style.Reset} Changes the Foreground color
1415
- The {Back.Indigo}Back.Indigo{Style.Reset} changes the background color
1516
- Combinations like {Back.Teal}{Fore.LightGoldenRodYellow}Back.Teal + Fore.LightGoldenRodYellow{Style.Reset} are also supported
1617
- Using {Fore.custom(rgb(123,45,67))}Fore.custom(rgb(123,45,67)){Style.Reset} will allow you to use custom rgb colors
1718
"""
18-
)
19+
)
1920

20-
# *-* Create your own rgb objects *-*
21-
custom_color = rgb(r=86, g=54, b=186)
22-
print(
21+
# *-* Create your own rgb objects *-*
22+
custom_color = rgb(r=86, g=54, b=186)
23+
print(
2324
f"""
2425
{Fore.custom(custom_color)}Text with a newly made rgb object{Style.Reset}
2526
{Fore.rgb(r=186, g=54, b=86)}Text without first making a custom rgb object{Style.Reset}
2627
"""
27-
)
28+
)
2829

29-
# *-* Print out of all colours and Style Formats *-*
30-
from AthenaColor.Help import (
31-
AllTable,
32-
AllBoxes
33-
)
30+
# *-* Print out of all colours and Style Formats *-*
31+
from AthenaColor.Help import (
32+
AllTable,
33+
AllBoxes
34+
)
3435

35-
print(
36+
print(
3637
f"""
3738
{Style.Bold}The following is a full list of all predefined colors.
3839
Together with all Style makeups found in AthenaColor.ConsolePrinter:{Style.Reset}
3940
"""
40-
)
41+
)
4142

42-
AllTable()
43+
AllTable()
4344

44-
print(
45+
print(
4546
f"""
4647
{Style.Bold}The following is a small view of all predefined colors:{Style.Reset}
47-
""")
48+
"""
49+
)
4850

49-
AllBoxes()
51+
AllBoxes()

src/AthenaColor/__main__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ----------------------------------------------------------------------------------------------------------------------
2+
# - Package Imports -
3+
# ----------------------------------------------------------------------------------------------------------------------
4+
# General Packages
5+
6+
# Custom Library
7+
8+
# Custom Packages
9+
from AthenaColor.Help.readme import readme
10+
11+
# ----------------------------------------------------------------------------------------------------------------------
12+
# - Code -
13+
# ----------------------------------------------------------------------------------------------------------------------
14+
if __name__ == "__main__":
15+
readme()

src/AthenaColor/main.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)