rgba 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rgba/__init__.py +35 -0
- rgba-0.1.0.dist-info/METADATA +13 -0
- rgba-0.1.0.dist-info/RECORD +5 -0
- rgba-0.1.0.dist-info/WHEEL +5 -0
- rgba-0.1.0.dist-info/top_level.txt +1 -0
rgba/__init__.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
class color:
|
|
2
|
+
RESET = "\033[0m"
|
|
3
|
+
|
|
4
|
+
Black = "\033[30m"
|
|
5
|
+
Red = "\033[31m"
|
|
6
|
+
Green = "\033[32m"
|
|
7
|
+
Yellow = "\033[33m"
|
|
8
|
+
Blue = "\033[34m"
|
|
9
|
+
Magenta = "\033[35m"
|
|
10
|
+
Cyan = "\033[36m"
|
|
11
|
+
White = "\033[37m"
|
|
12
|
+
|
|
13
|
+
BrightBlack = "\033[90m"
|
|
14
|
+
BrightRed = "\033[91m"
|
|
15
|
+
BrightGreen = "\033[92m"
|
|
16
|
+
BrightYellow = "\033[93m"
|
|
17
|
+
BrightBlue = "\033[94m"
|
|
18
|
+
BrightMagenta = "\033[95m"
|
|
19
|
+
BrightCyan = "\033[96m"
|
|
20
|
+
BrightWhite = "\033[97m"
|
|
21
|
+
|
|
22
|
+
@staticmethod
|
|
23
|
+
def text(msg: str, clr: str) -> str:
|
|
24
|
+
colors = {
|
|
25
|
+
'black': color.Black, 'red': color.Red, 'green': color.Green, 'yellow': color.Yellow,
|
|
26
|
+
'blue': color.Blue, 'magenta': color.Magenta, 'cyan': color.Cyan, 'white': color.White,
|
|
27
|
+
'bright_black': color.BrightBlack, 'bright_red': color.BrightRed,
|
|
28
|
+
'bright_green': color.BrightGreen, 'bright_yellow': color.BrightYellow,
|
|
29
|
+
'bright_blue': color.BrightBlue, 'bright_magenta': color.BrightMagenta,
|
|
30
|
+
'bright_cyan': color.BrightCyan, 'bright_white': color.BrightWhite
|
|
31
|
+
}
|
|
32
|
+
clr = clr.lower()
|
|
33
|
+
if clr in colors:
|
|
34
|
+
return colors[clr] + msg + color.RESET
|
|
35
|
+
return msg
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rgba
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A library that allows you to set colors in code
|
|
5
|
+
Author: Erqeon
|
|
6
|
+
Author-email: erqeon@gmail.com
|
|
7
|
+
License: MIT
|
|
8
|
+
Requires-Python: >=3.6
|
|
9
|
+
Dynamic: author
|
|
10
|
+
Dynamic: author-email
|
|
11
|
+
Dynamic: license
|
|
12
|
+
Dynamic: requires-python
|
|
13
|
+
Dynamic: summary
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
rgba/__init__.py,sha256=nvORsrM12VAYYUoow_DKqB7iOONn94jD2wXaSRscz84,1252
|
|
2
|
+
rgba-0.1.0.dist-info/METADATA,sha256=dSAuFTO63171ZU_MiMYvhkb0vsufqfcQGxHW0SdcsJU,297
|
|
3
|
+
rgba-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
4
|
+
rgba-0.1.0.dist-info/top_level.txt,sha256=5HRVcKBh4KUNImOpulopnpKH3Ge6CVcYsQdwEwtkfVE,5
|
|
5
|
+
rgba-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rgba
|