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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: shellcolorize
3
- Version: 0.1
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
- # 🌈 `colorize-term`
17
+ # 🌈 `shellcolorize`
18
18
 
19
- [![PyPI version](https://badge.fury.io/py/colorize-term.svg)](https://badge.fury.io/py/colorize-term)
19
+ [![PyPI version](https://badge.fury.io/py/shellcolorize.svg)](https://badge.fury.io/py/shellcolorize)
20
20
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
21
- [![GitHub stars](https://img.shields.io/github/stars/serber1990/colorize-term?style=social)](https://github.com/serber1990/colorize-term/stargazers)
21
+ [![GitHub stars](https://img.shields.io/github/stars/serber1990/shellcolorize?style=social)](https://github.com/serber1990/shellcolorize/stargazers)
22
22
 
23
- **`colorize-term`** 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.
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 `colorize-term` from PyPI:
38
+ Install `shellcolorize` from PyPI:
39
39
 
40
40
  ```bash
41
- pip install colorize-term
41
+ pip install shellcolorize
42
42
  ```
43
43
 
44
44
  ---
45
45
 
46
46
  ## 🛠 Usage
47
47
 
48
- `colorize-term` makes it easy to color your terminal text. Import `Color` from `colorize_term` and use the color attributes as shown below.
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 colorize_term import Color
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 colorize_term import Color
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 colorize_term import Color
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 `colorize-term`!
124
+ ### 🚀 Let's bring more color to the command line with `shellcolorize`!
@@ -1,11 +1,11 @@
1
1
 
2
- # 🌈 `colorize-term`
2
+ # 🌈 `shellcolorize`
3
3
 
4
- [![PyPI version](https://badge.fury.io/py/colorize-term.svg)](https://badge.fury.io/py/colorize-term)
4
+ [![PyPI version](https://badge.fury.io/py/shellcolorize.svg)](https://badge.fury.io/py/shellcolorize)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
6
- [![GitHub stars](https://img.shields.io/github/stars/serber1990/colorize-term?style=social)](https://github.com/serber1990/colorize-term/stargazers)
6
+ [![GitHub stars](https://img.shields.io/github/stars/serber1990/shellcolorize?style=social)](https://github.com/serber1990/shellcolorize/stargazers)
7
7
 
8
- **`colorize-term`** 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.
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 `colorize-term` from PyPI:
23
+ Install `shellcolorize` from PyPI:
24
24
 
25
25
  ```bash
26
- pip install colorize-term
26
+ pip install shellcolorize
27
27
  ```
28
28
 
29
29
  ---
30
30
 
31
31
  ## 🛠 Usage
32
32
 
33
- `colorize-term` makes it easy to color your terminal text. Import `Color` from `colorize_term` and use the color attributes as shown below.
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 colorize_term import Color
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 colorize_term import Color
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 colorize_term import Color
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 `colorize-term`!
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.1",
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,5 @@
1
+ #__init__.py
2
+ from .color import Color
3
+
4
+ # Export Color class to make it accessible as `shellcolorize.Color`
5
+ __all__ = ["Color"]
@@ -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.1
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
- # 🌈 `colorize-term`
17
+ # 🌈 `shellcolorize`
18
18
 
19
- [![PyPI version](https://badge.fury.io/py/colorize-term.svg)](https://badge.fury.io/py/colorize-term)
19
+ [![PyPI version](https://badge.fury.io/py/shellcolorize.svg)](https://badge.fury.io/py/shellcolorize)
20
20
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
21
- [![GitHub stars](https://img.shields.io/github/stars/serber1990/colorize-term?style=social)](https://github.com/serber1990/colorize-term/stargazers)
21
+ [![GitHub stars](https://img.shields.io/github/stars/serber1990/shellcolorize?style=social)](https://github.com/serber1990/shellcolorize/stargazers)
22
22
 
23
- **`colorize-term`** 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.
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 `colorize-term` from PyPI:
38
+ Install `shellcolorize` from PyPI:
39
39
 
40
40
  ```bash
41
- pip install colorize-term
41
+ pip install shellcolorize
42
42
  ```
43
43
 
44
44
  ---
45
45
 
46
46
  ## 🛠 Usage
47
47
 
48
- `colorize-term` makes it easy to color your terminal text. Import `Color` from `colorize_term` and use the color attributes as shown below.
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 colorize_term import Color
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 colorize_term import Color
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 colorize_term import Color
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 `colorize-term`!
124
+ ### 🚀 Let's bring more color to the command line with `shellcolorize`!
@@ -1,5 +1,7 @@
1
1
  README.md
2
2
  setup.py
3
+ shellcolorize/__init__.py
4
+ shellcolorize/color.py
3
5
  shellcolorize.egg-info/PKG-INFO
4
6
  shellcolorize.egg-info/SOURCES.txt
5
7
  shellcolorize.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ shellcolorize
File without changes