vornyx 1.0.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.
- vornyx-1.0.0/PKG-INFO +29 -0
- vornyx-1.0.0/README.md +17 -0
- vornyx-1.0.0/pyproject.toml +24 -0
- vornyx-1.0.0/setup.cfg +4 -0
- vornyx-1.0.0/src/vornyx/__init__.py +52 -0
- vornyx-1.0.0/src/vornyx.egg-info/PKG-INFO +29 -0
- vornyx-1.0.0/src/vornyx.egg-info/SOURCES.txt +8 -0
- vornyx-1.0.0/src/vornyx.egg-info/dependency_links.txt +1 -0
- vornyx-1.0.0/src/vornyx.egg-info/requires.txt +1 -0
- vornyx-1.0.0/src/vornyx.egg-info/top_level.txt +1 -0
vornyx-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vornyx
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A simple and beautiful console logger
|
|
5
|
+
Author-email: snowfarn <snowfarn@snowfarn.space>
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: colorama>=0.4.6
|
|
12
|
+
|
|
13
|
+
# vornyx
|
|
14
|
+
|
|
15
|
+
A beautiful and simple console logger for Python.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install vornyx
|
|
21
|
+
|
|
22
|
+
Usage
|
|
23
|
+
from vornyx import log
|
|
24
|
+
|
|
25
|
+
log.info("System initializing...")
|
|
26
|
+
log.success("Database connected successfully")
|
|
27
|
+
log.warning("Network latency detected")
|
|
28
|
+
log.failed("Failed to fetch user data")
|
|
29
|
+
log.error("Execution paused temporarily")
|
vornyx-1.0.0/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# vornyx
|
|
2
|
+
|
|
3
|
+
A beautiful and simple console logger for Python.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install vornyx
|
|
9
|
+
|
|
10
|
+
Usage
|
|
11
|
+
from vornyx import log
|
|
12
|
+
|
|
13
|
+
log.info("System initializing...")
|
|
14
|
+
log.success("Database connected successfully")
|
|
15
|
+
log.warning("Network latency detected")
|
|
16
|
+
log.failed("Failed to fetch user data")
|
|
17
|
+
log.error("Execution paused temporarily")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "vornyx"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "snowfarn", email = "snowfarn@snowfarn.space" },
|
|
10
|
+
]
|
|
11
|
+
description = "A simple and beautiful console logger"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.7"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
]
|
|
19
|
+
dependencies = [
|
|
20
|
+
"colorama>=0.4.6",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[tool.setuptools.packages.find]
|
|
24
|
+
where = ["src"]
|
vornyx-1.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
from colorama import init, Fore, Style
|
|
4
|
+
from pystyle import Colors
|
|
5
|
+
|
|
6
|
+
init(autoreset=True)
|
|
7
|
+
|
|
8
|
+
class ConsoleLogger:
|
|
9
|
+
|
|
10
|
+
@staticmethod
|
|
11
|
+
def _get_base_prefix(status_text, color):
|
|
12
|
+
timenow = datetime.now().strftime("%H:%M:%S")
|
|
13
|
+
C = Fore.CYAN
|
|
14
|
+
W = Fore.WHITE
|
|
15
|
+
|
|
16
|
+
status_aligned = f"{status_text:<5}"
|
|
17
|
+
|
|
18
|
+
return f"{C}[{Style.BRIGHT}{Fore.BLACK}{timenow}{C}] {W}- {color}{status_aligned} {W}-"
|
|
19
|
+
|
|
20
|
+
@staticmethod
|
|
21
|
+
def _format_text(text):
|
|
22
|
+
return text[:999] + "..." if len(text) > 999 else text
|
|
23
|
+
|
|
24
|
+
def success(self, text):
|
|
25
|
+
prefix = self._get_base_prefix("Suc", Colors.green)
|
|
26
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
27
|
+
|
|
28
|
+
def error(self, text):
|
|
29
|
+
prefix = self._get_base_prefix("Err", Colors.red)
|
|
30
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
31
|
+
|
|
32
|
+
def failed(self, text):
|
|
33
|
+
prefix = self._get_base_prefix("Fail", Colors.red)
|
|
34
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
35
|
+
|
|
36
|
+
def warning(self, text):
|
|
37
|
+
prefix = self._get_base_prefix("Warn", Colors.yellow)
|
|
38
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
39
|
+
|
|
40
|
+
def info(self, text):
|
|
41
|
+
prefix = self._get_base_prefix("Info", Colors.green)
|
|
42
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
43
|
+
|
|
44
|
+
def debug(self, text):
|
|
45
|
+
prefix = self._get_base_prefix("Debug", Fore.BLUE)
|
|
46
|
+
print(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}")
|
|
47
|
+
|
|
48
|
+
def input(self, text):
|
|
49
|
+
prefix = self._get_base_prefix("Input", Fore.BLUE)
|
|
50
|
+
return input(f"{prefix} {Style.BRIGHT}{Fore.BLACK}{self._format_text(text)}{Fore.BLUE}")
|
|
51
|
+
|
|
52
|
+
log = ConsoleLogger()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vornyx
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A simple and beautiful console logger
|
|
5
|
+
Author-email: snowfarn <snowfarn@snowfarn.space>
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: colorama>=0.4.6
|
|
12
|
+
|
|
13
|
+
# vornyx
|
|
14
|
+
|
|
15
|
+
A beautiful and simple console logger for Python.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install vornyx
|
|
21
|
+
|
|
22
|
+
Usage
|
|
23
|
+
from vornyx import log
|
|
24
|
+
|
|
25
|
+
log.info("System initializing...")
|
|
26
|
+
log.success("Database connected successfully")
|
|
27
|
+
log.warning("Network latency detected")
|
|
28
|
+
log.failed("Failed to fetch user data")
|
|
29
|
+
log.error("Execution paused temporarily")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
colorama>=0.4.6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vornyx
|