prayoadmii-lib 0.1.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PrayoadMii
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.4
2
+ Name: prayoadmii-lib
3
+ Version: 0.1.0
4
+ Summary: PrayoadMii Python Library
5
+ Author: PrayoadMii
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: colorama
11
+ Dynamic: license-file
12
+
13
+ # prayoadmii-lib
14
+ My Own Python Library
@@ -0,0 +1,2 @@
1
+ # prayoadmii-lib
2
+ My Own Python Library
@@ -0,0 +1,23 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "prayoadmii-lib"
7
+ version = "0.1.0"
8
+ description = "PrayoadMii Python Library"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ dependencies = [
12
+ "colorama"
13
+ ]
14
+ license = {text = "MIT"}
15
+ authors = [
16
+ {name = "PrayoadMii"}
17
+ ]
18
+
19
+ [tool.setuptools]
20
+ package-dir = {"" = "src"}
21
+
22
+ [tool.setuptools.packages.find]
23
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ # __init__.py
@@ -0,0 +1,46 @@
1
+ import sys
2
+ import colorama
3
+
4
+ from datetime import datetime
5
+ from colorama import Fore
6
+
7
+ colorama.init(autoreset=True)
8
+
9
+ def _GetTimeStamp() -> str:
10
+ now = datetime.now()
11
+
12
+ return str(now.strftime("%d/%m/%Y At %H:%M:%S"))
13
+
14
+ def _GetCaller() -> str:
15
+ try:
16
+ script_name = str(sys._getframe(2).f_globals.get('__name__', 'Unknown'))
17
+
18
+ if str(script_name) == "__main__":
19
+ return "Bootstrap"
20
+ else:
21
+ return str(script_name)
22
+ except Exception:
23
+ return "Unknown"
24
+
25
+ def _PrintHelp(ForeColor, TypeString: str, Console: str, Caller: str, TimeStamp: str):
26
+ print(f"{str(TimeStamp)} - [{ForeColor}{str(TypeString)}{Fore.RESET}]: {str(Console)} | {Fore.CYAN}[{str(Caller)}]{Fore.RESET}", flush=True)
27
+
28
+
29
+ def error(Text: str):
30
+ _PrintHelp(ForeColor=Fore.RED, TypeString="ERROR", Console=Text, Caller=str(_GetCaller()), TimeStamp=str(_GetTimeStamp()))
31
+
32
+
33
+ def info(Text: str):
34
+ _PrintHelp(ForeColor=Fore.BLUE, TypeString="INFO", Console=Text, Caller=str(_GetCaller()), TimeStamp=str(_GetTimeStamp()))
35
+
36
+
37
+ def log(Text: str):
38
+ _PrintHelp(ForeColor=Fore.GREEN, TypeString="LOG", Console=Text, Caller=str(_GetCaller()), TimeStamp=str(_GetTimeStamp()))
39
+
40
+
41
+ def warn(Text: str):
42
+ _PrintHelp(ForeColor=Fore.YELLOW, TypeString="WARN", Console=Text, Caller=str(_GetCaller()), TimeStamp=str(_GetTimeStamp()))
43
+
44
+
45
+ def debug(Text: str):
46
+ _PrintHelp(ForeColor=Fore.MAGENTA, TypeString="DEBUG", Console=Text, Caller=str(_GetCaller()), TimeStamp=str(_GetTimeStamp()))
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.4
2
+ Name: prayoadmii-lib
3
+ Version: 0.1.0
4
+ Summary: PrayoadMii Python Library
5
+ Author: PrayoadMii
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: colorama
11
+ Dynamic: license-file
12
+
13
+ # prayoadmii-lib
14
+ My Own Python Library
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/prayoadmii_lib/__init__.py
5
+ src/prayoadmii_lib/console.py
6
+ src/prayoadmii_lib.egg-info/PKG-INFO
7
+ src/prayoadmii_lib.egg-info/SOURCES.txt
8
+ src/prayoadmii_lib.egg-info/dependency_links.txt
9
+ src/prayoadmii_lib.egg-info/requires.txt
10
+ src/prayoadmii_lib.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ prayoadmii_lib