p1-example 0.1.0__py3-none-any.whl

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.
p1/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .helper import make_colorful_text, cprint
2
+ __version__ = "1.0.0"
3
+ #__all__ = ["make_colorful_text", "cprint"]
p1/helper.py ADDED
@@ -0,0 +1,11 @@
1
+ from termcolor import colored
2
+
3
+ def make_colorful_text(text:str, color:str = 'white') -> str:
4
+ return colored(text, color)
5
+
6
+ def cprint(**kwargs) -> None:
7
+ for k, v in kwargs.items():
8
+ key = make_colorful_text(k, 'red')
9
+ value = make_colorful_text(v, 'green')
10
+ print(f"{key}: {value}")
11
+
@@ -0,0 +1,19 @@
1
+ Metadata-Version: 2.4
2
+ Name: p1-example
3
+ Version: 0.1.0
4
+ Summary: A Python utility package
5
+ Requires-Python: >=3.9
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Dynamic: license-file
9
+
10
+ [build-system]
11
+ requires = ["setuptools>=61.0"]
12
+ build-backend = "setuptools.build_meta"
13
+
14
+ [project]
15
+ name = "p1-example"
16
+ version = "0.1.0"
17
+ description = "A Python package for colorful terminal text"
18
+ readme = "README.md"
19
+ requires-python = ">=3.9"
@@ -0,0 +1,7 @@
1
+ p1/__init__.py,sha256=d53g8LYTYccNlfPY-ddKs5tBggEd2XcKkiijLwEUqt4,112
2
+ p1/helper.py,sha256=iwqGQtgwlewB1TNsTRejbpMMrdjCqLV8ij-o59M37QY,312
3
+ p1_example-0.1.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ p1_example-0.1.0.dist-info/METADATA,sha256=iWSt0ivElDG8QXqq2E6cf1RqruF0WYm3iIqgIfcfaRw,439
5
+ p1_example-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
6
+ p1_example-0.1.0.dist-info/top_level.txt,sha256=LcQ6Rmo_tYltrOR33PQ4drX_IMWdg6RcJiKbdDmHiT4,3
7
+ p1_example-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
File without changes
@@ -0,0 +1 @@
1
+ p1