color-ascii-magic-genai 0.0.1__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.
@@ -0,0 +1,21 @@
1
+ from art import text2art
2
+ from termcolor import colored
3
+
4
+ def colorize_text(text: str, color: str = 'white', font: str = 'block') -> str:
5
+ """
6
+ Generates ASCII art from text and colorizes it.
7
+
8
+ Args:
9
+ text (str): The text to convert to ASCII art.
10
+ color (str): The color to apply. Supported colors: red, green, yellow, blue, magenta, cyan, white.
11
+ font (str): The font style for ASCII art.
12
+
13
+ Returns:
14
+ str: Colored ASCII art string.
15
+ """
16
+ ascii_art = text2art(text, font=font)
17
+ return colored(ascii_art, color)
18
+
19
+ def available_colors():
20
+ """Returns a list of available colors."""
21
+ return ['red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white']
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: color_ascii_magic_genai
3
+ Version: 0.0.1
4
+ Summary: A small example package for generating colored ASCII art
5
+ Project-URL: Homepage, https://github.com/example/color_ascii_magic_genai
6
+ Author-email: Prasoon Kumar <prasoonkumar@example.com>
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3
10
+ Requires-Python: >=3.7
11
+ Requires-Dist: art
12
+ Requires-Dist: termcolor
13
+ Description-Content-Type: text/markdown
14
+
15
+ # Color ASCII Magic GenAI
16
+
17
+ This is a simple package to generate ASCII art with colors.
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ pip install color_ascii_magic_genai
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```python
28
+ from color_ascii_magic_genai import colorize_text
29
+
30
+ print(colorize_text("Hello World", color="red"))
31
+ ```
@@ -0,0 +1,4 @@
1
+ color_ascii_magic_genai/__init__.py,sha256=hx_wik8qsxtBLjeuXbVdb5vhHKn6CkzvQjhquQQPWrw,715
2
+ color_ascii_magic_genai-0.0.1.dist-info/METADATA,sha256=NohnDNYhED4eQPCc4QwK0dLliZ7UxMKV7lCCSrsQIxc,794
3
+ color_ascii_magic_genai-0.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ color_ascii_magic_genai-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any