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 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,8 @@
1
+ # 3rgb
2
+
3
+ A minimalist library for coloring text in the console.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install 3rgb
@@ -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,7 @@
1
+ README.md
2
+ setup.py
3
+ rgba/__init__.py
4
+ rgba.egg-info/PKG-INFO
5
+ rgba.egg-info/SOURCES.txt
6
+ rgba.egg-info/dependency_links.txt
7
+ rgba.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ rgba
rgba-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
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
+ )