shellcolorize 0.1__tar.gz → 0.2__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.
- {shellcolorize-0.1 → shellcolorize-0.2}/PKG-INFO +12 -12
- {shellcolorize-0.1 → shellcolorize-0.2}/README.md +11 -11
- {shellcolorize-0.1 → shellcolorize-0.2}/setup.py +1 -1
- shellcolorize-0.2/shellcolorize/__init__.py +5 -0
- shellcolorize-0.2/shellcolorize/color.py +23 -0
- {shellcolorize-0.1 → shellcolorize-0.2}/shellcolorize.egg-info/PKG-INFO +12 -12
- {shellcolorize-0.1 → shellcolorize-0.2}/shellcolorize.egg-info/SOURCES.txt +2 -0
- shellcolorize-0.2/shellcolorize.egg-info/top_level.txt +1 -0
- shellcolorize-0.1/shellcolorize.egg-info/top_level.txt +0 -1
- {shellcolorize-0.1 → shellcolorize-0.2}/setup.cfg +0 -0
- {shellcolorize-0.1 → shellcolorize-0.2}/shellcolorize.egg-info/dependency_links.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shellcolorize
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
4
4
|
Summary: A simple library to add ANSI color codes to terminal text
|
|
5
5
|
Home-page: https://github.com/serber1990/shell-colorize
|
|
6
6
|
Author: Serber1990
|
|
@@ -14,13 +14,13 @@ Requires-Python: >=3.6
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
# 🌈 `
|
|
17
|
+
# 🌈 `shellcolorize`
|
|
18
18
|
|
|
19
|
-
[](https://badge.fury.io/py/shellcolorize)
|
|
20
20
|
[](https://opensource.org/licenses/MIT)
|
|
21
|
-
[](https://github.com/serber1990/shellcolorize/stargazers)
|
|
22
22
|
|
|
23
|
-
**`
|
|
23
|
+
**`shellcolorize`** is a lightweight Python library for adding color to terminal text using ANSI color codes. This library makes it easy to style your command-line output with vibrant colors and backgrounds, perfect for enhancing readability and making CLI applications more visually appealing.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -35,21 +35,21 @@ Description-Content-Type: text/markdown
|
|
|
35
35
|
|
|
36
36
|
## 📥 Installation
|
|
37
37
|
|
|
38
|
-
Install `
|
|
38
|
+
Install `shellcolorize` from PyPI:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pip install
|
|
41
|
+
pip install shellcolorize
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
---
|
|
45
45
|
|
|
46
46
|
## 🛠 Usage
|
|
47
47
|
|
|
48
|
-
`
|
|
48
|
+
`shellcolorize` makes it easy to color your terminal text. Import `Color` from `shellcolorize` and use the color attributes as shown below.
|
|
49
49
|
|
|
50
50
|
### Basic Usage
|
|
51
51
|
```python
|
|
52
|
-
from
|
|
52
|
+
from shellcolorize import Color
|
|
53
53
|
|
|
54
54
|
print(f"{Color.RED}This is red text{Color.RESET}")
|
|
55
55
|
print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
@@ -57,7 +57,7 @@ print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
|
57
57
|
|
|
58
58
|
### Using Background Colors
|
|
59
59
|
```python
|
|
60
|
-
from
|
|
60
|
+
from shellcolorize import Color
|
|
61
61
|
|
|
62
62
|
print(f"{Color.BG_YELLOW}{Color.BLACK}Black text on yellow background{Color.RESET}")
|
|
63
63
|
print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
@@ -65,7 +65,7 @@ print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
|
65
65
|
|
|
66
66
|
### Combining Text and Background Colors
|
|
67
67
|
```python
|
|
68
|
-
from
|
|
68
|
+
from shellcolorize import Color
|
|
69
69
|
|
|
70
70
|
print(f"{Color.BG_RED}{Color.CYAN}Cyan text on red background{Color.RESET}")
|
|
71
71
|
print(f"{Color.BG_GREEN}{Color.MAGENTA}Magenta text on green background{Color.RESET}")
|
|
@@ -121,4 +121,4 @@ If you have any questions, issues, or suggestions, please feel free to open an i
|
|
|
121
121
|
|
|
122
122
|
---
|
|
123
123
|
|
|
124
|
-
### 🚀 Let's bring more color to the command line with `
|
|
124
|
+
### 🚀 Let's bring more color to the command line with `shellcolorize`!
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
# 🌈 `
|
|
2
|
+
# 🌈 `shellcolorize`
|
|
3
3
|
|
|
4
|
-
[](https://badge.fury.io/py/shellcolorize)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://github.com/serber1990/shellcolorize/stargazers)
|
|
7
7
|
|
|
8
|
-
**`
|
|
8
|
+
**`shellcolorize`** is a lightweight Python library for adding color to terminal text using ANSI color codes. This library makes it easy to style your command-line output with vibrant colors and backgrounds, perfect for enhancing readability and making CLI applications more visually appealing.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
|
|
21
21
|
## 📥 Installation
|
|
22
22
|
|
|
23
|
-
Install `
|
|
23
|
+
Install `shellcolorize` from PyPI:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
pip install
|
|
26
|
+
pip install shellcolorize
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
---
|
|
30
30
|
|
|
31
31
|
## 🛠 Usage
|
|
32
32
|
|
|
33
|
-
`
|
|
33
|
+
`shellcolorize` makes it easy to color your terminal text. Import `Color` from `shellcolorize` and use the color attributes as shown below.
|
|
34
34
|
|
|
35
35
|
### Basic Usage
|
|
36
36
|
```python
|
|
37
|
-
from
|
|
37
|
+
from shellcolorize import Color
|
|
38
38
|
|
|
39
39
|
print(f"{Color.RED}This is red text{Color.RESET}")
|
|
40
40
|
print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
@@ -42,7 +42,7 @@ print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
|
42
42
|
|
|
43
43
|
### Using Background Colors
|
|
44
44
|
```python
|
|
45
|
-
from
|
|
45
|
+
from shellcolorize import Color
|
|
46
46
|
|
|
47
47
|
print(f"{Color.BG_YELLOW}{Color.BLACK}Black text on yellow background{Color.RESET}")
|
|
48
48
|
print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
@@ -50,7 +50,7 @@ print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
|
50
50
|
|
|
51
51
|
### Combining Text and Background Colors
|
|
52
52
|
```python
|
|
53
|
-
from
|
|
53
|
+
from shellcolorize import Color
|
|
54
54
|
|
|
55
55
|
print(f"{Color.BG_RED}{Color.CYAN}Cyan text on red background{Color.RESET}")
|
|
56
56
|
print(f"{Color.BG_GREEN}{Color.MAGENTA}Magenta text on green background{Color.RESET}")
|
|
@@ -106,4 +106,4 @@ If you have any questions, issues, or suggestions, please feel free to open an i
|
|
|
106
106
|
|
|
107
107
|
---
|
|
108
108
|
|
|
109
|
-
### 🚀 Let's bring more color to the command line with `
|
|
109
|
+
### 🚀 Let's bring more color to the command line with `shellcolorize`!
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="shellcolorize",
|
|
5
|
-
version="0.
|
|
5
|
+
version="0.2",
|
|
6
6
|
description="A simple library to add ANSI color codes to terminal text",
|
|
7
7
|
long_description=open("README.md").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# color.py
|
|
2
|
+
|
|
3
|
+
class Color:
|
|
4
|
+
# Text colors
|
|
5
|
+
BLACK = "\033[30m"
|
|
6
|
+
RED = "\033[31m"
|
|
7
|
+
GREEN = "\033[32m"
|
|
8
|
+
YELLOW = "\033[33m"
|
|
9
|
+
BLUE = "\033[34m"
|
|
10
|
+
MAGENTA = "\033[35m"
|
|
11
|
+
CYAN = "\033[36m"
|
|
12
|
+
WHITE = "\033[37m"
|
|
13
|
+
RESET = "\033[0m"
|
|
14
|
+
|
|
15
|
+
# Background colors
|
|
16
|
+
BG_BLACK = "\033[40m"
|
|
17
|
+
BG_RED = "\033[41m"
|
|
18
|
+
BG_GREEN = "\033[42m"
|
|
19
|
+
BG_YELLOW = "\033[43m"
|
|
20
|
+
BG_BLUE = "\033[44m"
|
|
21
|
+
BG_MAGENTA = "\033[45m"
|
|
22
|
+
BG_CYAN = "\033[46m"
|
|
23
|
+
BG_WHITE = "\033[47m"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: shellcolorize
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2
|
|
4
4
|
Summary: A simple library to add ANSI color codes to terminal text
|
|
5
5
|
Home-page: https://github.com/serber1990/shell-colorize
|
|
6
6
|
Author: Serber1990
|
|
@@ -14,13 +14,13 @@ Requires-Python: >=3.6
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
# 🌈 `
|
|
17
|
+
# 🌈 `shellcolorize`
|
|
18
18
|
|
|
19
|
-
[](https://badge.fury.io/py/shellcolorize)
|
|
20
20
|
[](https://opensource.org/licenses/MIT)
|
|
21
|
-
[](https://github.com/serber1990/shellcolorize/stargazers)
|
|
22
22
|
|
|
23
|
-
**`
|
|
23
|
+
**`shellcolorize`** is a lightweight Python library for adding color to terminal text using ANSI color codes. This library makes it easy to style your command-line output with vibrant colors and backgrounds, perfect for enhancing readability and making CLI applications more visually appealing.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -35,21 +35,21 @@ Description-Content-Type: text/markdown
|
|
|
35
35
|
|
|
36
36
|
## 📥 Installation
|
|
37
37
|
|
|
38
|
-
Install `
|
|
38
|
+
Install `shellcolorize` from PyPI:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pip install
|
|
41
|
+
pip install shellcolorize
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
---
|
|
45
45
|
|
|
46
46
|
## 🛠 Usage
|
|
47
47
|
|
|
48
|
-
`
|
|
48
|
+
`shellcolorize` makes it easy to color your terminal text. Import `Color` from `shellcolorize` and use the color attributes as shown below.
|
|
49
49
|
|
|
50
50
|
### Basic Usage
|
|
51
51
|
```python
|
|
52
|
-
from
|
|
52
|
+
from shellcolorize import Color
|
|
53
53
|
|
|
54
54
|
print(f"{Color.RED}This is red text{Color.RESET}")
|
|
55
55
|
print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
@@ -57,7 +57,7 @@ print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
|
57
57
|
|
|
58
58
|
### Using Background Colors
|
|
59
59
|
```python
|
|
60
|
-
from
|
|
60
|
+
from shellcolorize import Color
|
|
61
61
|
|
|
62
62
|
print(f"{Color.BG_YELLOW}{Color.BLACK}Black text on yellow background{Color.RESET}")
|
|
63
63
|
print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
@@ -65,7 +65,7 @@ print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
|
65
65
|
|
|
66
66
|
### Combining Text and Background Colors
|
|
67
67
|
```python
|
|
68
|
-
from
|
|
68
|
+
from shellcolorize import Color
|
|
69
69
|
|
|
70
70
|
print(f"{Color.BG_RED}{Color.CYAN}Cyan text on red background{Color.RESET}")
|
|
71
71
|
print(f"{Color.BG_GREEN}{Color.MAGENTA}Magenta text on green background{Color.RESET}")
|
|
@@ -121,4 +121,4 @@ If you have any questions, issues, or suggestions, please feel free to open an i
|
|
|
121
121
|
|
|
122
122
|
---
|
|
123
123
|
|
|
124
|
-
### 🚀 Let's bring more color to the command line with `
|
|
124
|
+
### 🚀 Let's bring more color to the command line with `shellcolorize`!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
shellcolorize
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|
|
File without changes
|