ConsoleLib 1.3.2__tar.gz → 1.3.3__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,5 +1,5 @@
1
1
  """
2
- ConsoleLib - The best Console Renderer of the Python.
2
+ ConsoleLib - The best Console Library of the Python.
3
3
  By: Suleiman
4
4
  Copyright © Suleiman 2026
5
5
  All rights are reserved.
@@ -11,6 +11,58 @@ import subprocess as CMD
11
11
  import math
12
12
  import random
13
13
  from typing import Optional, Iterator, List
14
+ class Colors:
15
+ RESET = "\033[0m"
16
+ BOLD = "\033[1m"
17
+ DIM = "\033[2m"
18
+ ITALIC = "\033[3m"
19
+ UNDERLINE = "\033[4m"
20
+ BLINK = "\033[5m"
21
+ REVERSE = "\033[7m"
22
+ HIDDEN = "\033[8m"
23
+ STRIKE = "\033[9m"
24
+ BLACK = "\033[30m"
25
+ RED = "\033[31m"
26
+ GREEN = "\033[32m"
27
+ YELLOW = "\033[33m"
28
+ BLUE = "\033[34m"
29
+ MAGENTA = "\033[35m"
30
+ CYAN = "\033[36m"
31
+ WHITE = "\033[37m"
32
+ BRIGHT_BLACK = "\033[90m"
33
+ BRIGHT_RED = "\033[91m"
34
+ BRIGHT_GREEN = "\033[92m"
35
+ BRIGHT_YELLOW = "\033[93m"
36
+ BRIGHT_BLUE = "\033[94m"
37
+ BRIGHT_MAGENTA = "\033[95m"
38
+ BRIGHT_CYAN = "\033[96m"
39
+ BRIGHT_WHITE = "\033[97m"
40
+ BG_BLACK = "\033[40m"
41
+ BG_RED = "\033[41m"
42
+ BG_GREEN = "\033[42m"
43
+ BG_YELLOW = "\033[43m"
44
+ BG_BLUE = "\033[44m"
45
+ BG_MAGENTA = "\033[45m"
46
+ BG_CYAN = "\033[46m"
47
+ BG_WHITE = "\033[47m"
48
+ BG_BRIGHT_BLACK = "\033[100m"
49
+ BG_BRIGHT_RED = "\033[101m"
50
+ BG_BRIGHT_GREEN = "\033[102m"
51
+ BG_BRIGHT_YELLOW = "\033[103m"
52
+ BG_BRIGHT_BLUE = "\033[104m"
53
+ BG_BRIGHT_MAGENTA = "\033[105m"
54
+ BG_BRIGHT_CYAN = "\033[106m"
55
+ BG_BRIGHT_WHITE = "\033[107m"
56
+ @staticmethod
57
+ def rgb(r, g, b):
58
+ return f"\033[38;2;{r};{g};{b}m"
59
+ @staticmethod
60
+ def bg_rgb(r, g, b):
61
+ return f"\033[48;2;{r};{g};{b}m"
62
+ @staticmethod
63
+ def colorize(text, color, reset=True):
64
+ reset_code = Colors.RESET if reset else ""
65
+ return f"{color}{text}{reset_code}"
14
66
  class Animate:
15
67
  def clear_screen():
16
68
  os.system('cls' if os.name == 'nt' else 'clear')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ConsoleLib
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: The library for easy and best control on the Console.
5
5
  Author-email: Suleiman <steal.apet@mail.ru>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ConsoleLib
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: The library for easy and best control on the Console.
5
5
  Author-email: Suleiman <steal.apet@mail.ru>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ConsoleLib"
7
- version = "1.3.2"
7
+ version = "1.3.3"
8
8
  description = "The library for easy and best control on the Console."
9
9
  authors = [{name = "Suleiman", email = "steal.apet@mail.ru"}]
10
10
  readme = "README.md"
File without changes
File without changes