rgba 0.1.0__tar.gz
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-0.1.0/PKG-INFO +13 -0
- rgba-0.1.0/README.md +8 -0
- rgba-0.1.0/rgba/__init__.py +35 -0
- rgba-0.1.0/rgba.egg-info/PKG-INFO +13 -0
- rgba-0.1.0/rgba.egg-info/SOURCES.txt +7 -0
- rgba-0.1.0/rgba.egg-info/dependency_links.txt +1 -0
- rgba-0.1.0/rgba.egg-info/top_level.txt +1 -0
- rgba-0.1.0/setup.cfg +4 -0
- rgba-0.1.0/setup.py +12 -0
rgba-0.1.0/PKG-INFO
ADDED
|
@@ -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
|
rgba-0.1.0/README.md
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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rgba
|
rgba-0.1.0/setup.cfg
ADDED
rgba-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="rgba",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
description="A library that allows you to set colors in code",
|
|
7
|
+
author="Erqeon",
|
|
8
|
+
author_email="erqeon@gmail.com",
|
|
9
|
+
packages=find_packages(),
|
|
10
|
+
license="MIT",
|
|
11
|
+
python_requires=">=3.6",
|
|
12
|
+
)
|