tinycolorlog 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 tinycolorlog contributors
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,99 @@
1
+ Metadata-Version: 2.4
2
+ Name: tinycolorlog
3
+ Version: 0.1.0
4
+ Summary: A tiny Python logger with colorful ANSI terminal output.
5
+ License: MIT License
6
+
7
+ Copyright (c) 2026 tinycolorlog contributors
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Keywords: logging,color,terminal,cli,ansi
28
+ Classifier: Development Status :: 3 - Alpha
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.7
33
+ Classifier: Programming Language :: Python :: 3.8
34
+ Classifier: Programming Language :: Python :: 3.9
35
+ Classifier: Programming Language :: Python :: 3.10
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Topic :: System :: Logging
39
+ Classifier: Topic :: Terminals
40
+ Requires-Python: >=3.7
41
+ Description-Content-Type: text/markdown
42
+ License-File: LICENSE
43
+ Dynamic: license-file
44
+
45
+ # tinycolorlog
46
+
47
+ A tiny, zero-dependency Python logger with colorful ANSI terminal output.
48
+
49
+ ## Installation
50
+
51
+ ```bash
52
+ pip install tinycolorlog
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ ```python
58
+ from tinycolorlog import logger
59
+
60
+ logger.info("Server started on port 8080")
61
+ logger.success("Database connection established")
62
+ logger.error("Failed to read configuration file")
63
+ ```
64
+
65
+ ### Output
66
+
67
+ Each method prints a bold, colored prefix followed by your message:
68
+
69
+ | Method | Color | Prefix |
70
+ |--------------------|--------|-------------|
71
+ | `logger.info()` | 🔵 Blue | `[INFO]` |
72
+ | `logger.success()` | 🟢 Green | `[SUCCESS]` |
73
+ | `logger.error()` | 🔴 Red | `[ERROR]` |
74
+
75
+ ## API Reference
76
+
77
+ ### `logger.info(message: str)`
78
+ Prints an informational message in **blue**.
79
+
80
+ ### `logger.success(message: str)`
81
+ Prints a success message in **green**.
82
+
83
+ ### `logger.error(message: str)`
84
+ Prints an error message in **red**.
85
+
86
+ ## Advanced: Custom Instance
87
+
88
+ You can also instantiate `TinyLogger` directly if you prefer:
89
+
90
+ ```python
91
+ from tinycolorlog.handler import TinyLogger
92
+
93
+ my_logger = TinyLogger()
94
+ my_logger.success("Custom logger instance works too!")
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,55 @@
1
+ # tinycolorlog
2
+
3
+ A tiny, zero-dependency Python logger with colorful ANSI terminal output.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install tinycolorlog
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from tinycolorlog import logger
15
+
16
+ logger.info("Server started on port 8080")
17
+ logger.success("Database connection established")
18
+ logger.error("Failed to read configuration file")
19
+ ```
20
+
21
+ ### Output
22
+
23
+ Each method prints a bold, colored prefix followed by your message:
24
+
25
+ | Method | Color | Prefix |
26
+ |--------------------|--------|-------------|
27
+ | `logger.info()` | 🔵 Blue | `[INFO]` |
28
+ | `logger.success()` | 🟢 Green | `[SUCCESS]` |
29
+ | `logger.error()` | 🔴 Red | `[ERROR]` |
30
+
31
+ ## API Reference
32
+
33
+ ### `logger.info(message: str)`
34
+ Prints an informational message in **blue**.
35
+
36
+ ### `logger.success(message: str)`
37
+ Prints a success message in **green**.
38
+
39
+ ### `logger.error(message: str)`
40
+ Prints an error message in **red**.
41
+
42
+ ## Advanced: Custom Instance
43
+
44
+ You can also instantiate `TinyLogger` directly if you prefer:
45
+
46
+ ```python
47
+ from tinycolorlog.handler import TinyLogger
48
+
49
+ my_logger = TinyLogger()
50
+ my_logger.success("Custom logger instance works too!")
51
+ ```
52
+
53
+ ## License
54
+
55
+ MIT — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "tinycolorlog"
7
+ version = "0.1.0"
8
+ description = "A tiny Python logger with colorful ANSI terminal output."
9
+ readme = "README.md"
10
+ license = { file = "LICENSE" }
11
+ requires-python = ">=3.7"
12
+ keywords = ["logging", "color", "terminal", "cli", "ansi"]
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.7",
19
+ "Programming Language :: Python :: 3.8",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: System :: Logging",
25
+ "Topic :: Terminals",
26
+ ]
27
+
28
+ [tool.setuptools.packages.find]
29
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from tinycolorlog.handler import logger
2
+
3
+ __all__ = ["logger"]
@@ -0,0 +1,23 @@
1
+ class TinyLogger:
2
+ """A tiny logger with colorful ANSI output."""
3
+
4
+ GREEN = "\033[92m"
5
+ RED = "\033[91m"
6
+ BLUE = "\033[94m"
7
+ RESET = "\033[0m"
8
+ BOLD = "\033[1m"
9
+
10
+ def success(self, message: str) -> None:
11
+ """Print a success message in green."""
12
+ print(f"{self.BOLD}{self.GREEN}[SUCCESS]{self.RESET} {message}")
13
+
14
+ def error(self, message: str) -> None:
15
+ """Print an error message in red."""
16
+ print(f"{self.BOLD}{self.RED}[ERROR]{self.RESET} {message}")
17
+
18
+ def info(self, message: str) -> None:
19
+ """Print an info message in blue."""
20
+ print(f"{self.BOLD}{self.BLUE}[INFO]{self.RESET} {message}")
21
+
22
+
23
+ logger = TinyLogger()
@@ -0,0 +1,99 @@
1
+ Metadata-Version: 2.4
2
+ Name: tinycolorlog
3
+ Version: 0.1.0
4
+ Summary: A tiny Python logger with colorful ANSI terminal output.
5
+ License: MIT License
6
+
7
+ Copyright (c) 2026 tinycolorlog contributors
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Keywords: logging,color,terminal,cli,ansi
28
+ Classifier: Development Status :: 3 - Alpha
29
+ Classifier: Intended Audience :: Developers
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.7
33
+ Classifier: Programming Language :: Python :: 3.8
34
+ Classifier: Programming Language :: Python :: 3.9
35
+ Classifier: Programming Language :: Python :: 3.10
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Topic :: System :: Logging
39
+ Classifier: Topic :: Terminals
40
+ Requires-Python: >=3.7
41
+ Description-Content-Type: text/markdown
42
+ License-File: LICENSE
43
+ Dynamic: license-file
44
+
45
+ # tinycolorlog
46
+
47
+ A tiny, zero-dependency Python logger with colorful ANSI terminal output.
48
+
49
+ ## Installation
50
+
51
+ ```bash
52
+ pip install tinycolorlog
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ ```python
58
+ from tinycolorlog import logger
59
+
60
+ logger.info("Server started on port 8080")
61
+ logger.success("Database connection established")
62
+ logger.error("Failed to read configuration file")
63
+ ```
64
+
65
+ ### Output
66
+
67
+ Each method prints a bold, colored prefix followed by your message:
68
+
69
+ | Method | Color | Prefix |
70
+ |--------------------|--------|-------------|
71
+ | `logger.info()` | 🔵 Blue | `[INFO]` |
72
+ | `logger.success()` | 🟢 Green | `[SUCCESS]` |
73
+ | `logger.error()` | 🔴 Red | `[ERROR]` |
74
+
75
+ ## API Reference
76
+
77
+ ### `logger.info(message: str)`
78
+ Prints an informational message in **blue**.
79
+
80
+ ### `logger.success(message: str)`
81
+ Prints a success message in **green**.
82
+
83
+ ### `logger.error(message: str)`
84
+ Prints an error message in **red**.
85
+
86
+ ## Advanced: Custom Instance
87
+
88
+ You can also instantiate `TinyLogger` directly if you prefer:
89
+
90
+ ```python
91
+ from tinycolorlog.handler import TinyLogger
92
+
93
+ my_logger = TinyLogger()
94
+ my_logger.success("Custom logger instance works too!")
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/tinycolorlog/__init__.py
5
+ src/tinycolorlog/handler.py
6
+ src/tinycolorlog.egg-info/PKG-INFO
7
+ src/tinycolorlog.egg-info/SOURCES.txt
8
+ src/tinycolorlog.egg-info/dependency_links.txt
9
+ src/tinycolorlog.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ tinycolorlog