prayoadmii-lib 0.2.0__tar.gz → 0.2.1__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.4
2
2
  Name: prayoadmii-lib
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python Library To Help Me Developing Things Faster
5
5
  Author: PrayoadMii
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "prayoadmii-lib"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "A Python Library To Help Me Developing Things Faster"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -38,17 +38,13 @@ def _GetCaller() -> str:
38
38
  async def _FallbackLogger(Output: str | None):
39
39
  print()
40
40
 
41
- async def _log(ForeColor = Fore.CYAN, LogType: str = "I", Output: str | None = None, Caller: str = ""):
41
+ def _log(ForeColor = Fore.CYAN, LogType: str = "I", Output: str | None = None, Caller: str = ""):
42
42
  time = str(_GetTimeStamp("%d/%m/%Y - %H:%M:%S"))
43
43
 
44
44
  log_msg = f"{str(time)} [{str(Caller)}/{str(LogType)}]: {"" if Output is None else str(Output)}"
45
45
  print_msg = f"{str(time)} [{Fore.CYAN}{str(Caller)}{Fore.RESET}/{ForeColor}{str(LogType)}{Fore.RESET}]: {"" if Output is None else str(Output)}"
46
46
 
47
- await asyncio.to_thread(
48
- print,
49
- str(print_msg),
50
- flush = True
51
- )
47
+ print(str(print_msg), flush = True)
52
48
 
53
49
 
54
50
  async def init(config: ConsoleConfig | None = None):
@@ -60,59 +56,49 @@ async def init(config: ConsoleConfig | None = None):
60
56
  def log(text: str | None = None):
61
57
  caller = str(_GetCaller())
62
58
 
63
- asyncio.run(
64
- _log(
65
- ForeColor = Fore.GREEN,
66
- LogType = "L",
67
- Output = text,
68
- Caller = caller
69
- )
59
+ _log(
60
+ ForeColor = Fore.GREEN,
61
+ LogType = "L",
62
+ Output = text,
63
+ Caller = caller
70
64
  )
71
65
 
72
66
  def info(text: str | None = None):
73
67
  caller = str(_GetCaller())
74
68
 
75
- asyncio.run(
76
- _log(
77
- ForeColor = Fore.CYAN,
78
- LogType = "I",
79
- Output = text,
80
- Caller = caller
81
- )
69
+ _log(
70
+ ForeColor = Fore.CYAN,
71
+ LogType = "I",
72
+ Output = text,
73
+ Caller = caller
82
74
  )
83
75
 
84
76
  def warn(text: str | None = None):
85
77
  caller = str(_GetCaller())
86
78
 
87
- asyncio.run(
88
- _log(
89
- ForeColor = Fore.YELLOW,
90
- LogType = "W",
91
- Output = text,
92
- Caller = caller
93
- )
79
+ _log(
80
+ ForeColor = Fore.YELLOW,
81
+ LogType = "W",
82
+ Output = text,
83
+ Caller = caller
94
84
  )
95
85
 
96
86
  def error(text: str | None = None):
97
87
  caller = str(_GetCaller())
98
88
 
99
- asyncio.run(
100
- _log(
101
- ForeColor = Fore.RED,
102
- LogType = "E",
103
- Output = text,
104
- Caller = caller
105
- )
89
+ _log(
90
+ ForeColor = Fore.RED,
91
+ LogType = "E",
92
+ Output = text,
93
+ Caller = caller
106
94
  )
107
95
 
108
96
  def debug(text: str | None = None):
109
97
  caller = str(_GetCaller())
110
98
 
111
- asyncio.run(
112
- _log(
113
- ForeColor = Fore.MAGENTA,
114
- LogType = "D",
115
- Output = text,
116
- Caller = caller
117
- )
99
+ _log(
100
+ ForeColor = Fore.MAGENTA,
101
+ LogType = "D",
102
+ Output = text,
103
+ Caller = caller
118
104
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prayoadmii-lib
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python Library To Help Me Developing Things Faster
5
5
  Author: PrayoadMii
6
6
  License: MIT
File without changes
File without changes
File without changes