shellcolorize 0.1__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.
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: shellcolorize
|
|
3
|
+
Version: 0.1
|
|
4
|
+
Summary: A simple library to add ANSI color codes to terminal text
|
|
5
|
+
Home-page: https://github.com/serber1990/shell-colorize
|
|
6
|
+
Author: Serber1990
|
|
7
|
+
Author-email: serber1990@pm.me
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/serber1990/shell-colorize/issues
|
|
9
|
+
Project-URL: Documentation, https://github.com/serber1990/shell-colorize
|
|
10
|
+
Project-URL: Source Code, https://github.com/serber1990/shell-colorize
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 🌈 `colorize-term`
|
|
18
|
+
|
|
19
|
+
[](https://badge.fury.io/py/colorize-term)
|
|
20
|
+
[](https://opensource.org/licenses/MIT)
|
|
21
|
+
[](https://github.com/serber1990/colorize-term/stargazers)
|
|
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.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## ✨ Features
|
|
28
|
+
|
|
29
|
+
- 🌈 **Wide Range of Colors**: Includes standard text and background colors.
|
|
30
|
+
- 🚀 **Easy to Use**: Simple and intuitive API to add color to terminal text.
|
|
31
|
+
- 💡 **ANSI Standard**: Uses ANSI color codes, compatible with most Unix-based terminals and compatible environments.
|
|
32
|
+
- 🔗 **Open Source**: Licensed under the MIT License.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📥 Installation
|
|
37
|
+
|
|
38
|
+
Install `colorize-term` from PyPI:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install colorize-term
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 🛠 Usage
|
|
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.
|
|
49
|
+
|
|
50
|
+
### Basic Usage
|
|
51
|
+
```python
|
|
52
|
+
from colorize_term import Color
|
|
53
|
+
|
|
54
|
+
print(f"{Color.RED}This is red text{Color.RESET}")
|
|
55
|
+
print(f"{Color.GREEN}This is green text{Color.RESET}")
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Using Background Colors
|
|
59
|
+
```python
|
|
60
|
+
from colorize_term import Color
|
|
61
|
+
|
|
62
|
+
print(f"{Color.BG_YELLOW}{Color.BLACK}Black text on yellow background{Color.RESET}")
|
|
63
|
+
print(f"{Color.BG_BLUE}{Color.WHITE}White text on blue background{Color.RESET}")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Combining Text and Background Colors
|
|
67
|
+
```python
|
|
68
|
+
from colorize_term import Color
|
|
69
|
+
|
|
70
|
+
print(f"{Color.BG_RED}{Color.CYAN}Cyan text on red background{Color.RESET}")
|
|
71
|
+
print(f"{Color.BG_GREEN}{Color.MAGENTA}Magenta text on green background{Color.RESET}")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🎨 Available Colors
|
|
77
|
+
|
|
78
|
+
### Text Colors
|
|
79
|
+
|
|
80
|
+
| Color | Usage Example |
|
|
81
|
+
|-------|------------------------------|
|
|
82
|
+
| Black | `{Color.BLACK}Text{Color.RESET}` |
|
|
83
|
+
| Red | `{Color.RED}Text{Color.RESET}` |
|
|
84
|
+
| Green | `{Color.GREEN}Text{Color.RESET}` |
|
|
85
|
+
| Yellow| `{Color.YELLOW}Text{Color.RESET}` |
|
|
86
|
+
| Blue | `{Color.BLUE}Text{Color.RESET}` |
|
|
87
|
+
| Magenta | `{Color.MAGENTA}Text{Color.RESET}` |
|
|
88
|
+
| Cyan | `{Color.CYAN}Text{Color.RESET}` |
|
|
89
|
+
| White | `{Color.WHITE}Text{Color.RESET}` |
|
|
90
|
+
|
|
91
|
+
### Background Colors
|
|
92
|
+
|
|
93
|
+
| Color | Usage Example |
|
|
94
|
+
|-------------|--------------------------------------|
|
|
95
|
+
| Black | `{Color.BG_BLACK}Text{Color.RESET}` |
|
|
96
|
+
| Red | `{Color.BG_RED}Text{Color.RESET}` |
|
|
97
|
+
| Green | `{Color.BG_GREEN}Text{Color.RESET}` |
|
|
98
|
+
| Yellow | `{Color.BG_YELLOW}Text{Color.RESET}` |
|
|
99
|
+
| Blue | `{Color.BG_BLUE}Text{Color.RESET}` |
|
|
100
|
+
| Magenta | `{Color.BG_MAGENTA}Text{Color.RESET}`|
|
|
101
|
+
| Cyan | `{Color.BG_CYAN}Text{Color.RESET}` |
|
|
102
|
+
| White | `{Color.BG_WHITE}Text{Color.RESET}` |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 📝 License
|
|
107
|
+
|
|
108
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 💬 Feedback
|
|
113
|
+
|
|
114
|
+
If you have any questions, issues, or suggestions, please feel free to open an issue in the repository or contact me directly via GitHub.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 🌐 Connect with Me
|
|
119
|
+
|
|
120
|
+
[](https://github.com/serber1990)
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### 🚀 Let's bring more color to the command line with `colorize-term`!
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
shellcolorize-0.1.dist-info/METADATA,sha256=J1Ie2jgiz5bVpBTrWPXNQ3dP3E8TT8GNLH5GSwOSxhk,4166
|
|
2
|
+
shellcolorize-0.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
3
|
+
shellcolorize-0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
|
+
shellcolorize-0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|