A small example package for generating colored ASCII art
Project description
Color ASCII Magic GenAI
A Python package for generating colorful ASCII art. It wraps the art library for ASCII generation and termcolor for coloring, adding fun modes like Random and Rainbow colors.
Features
- Standard Colors: Support for
red,green,yellow,blue,magenta,cyan,white. - Random Mode: Automatically picks a random color for the entire text.
- Rainbow Mode: Colors each character individually with a random color for a vibrant effect.
Installation
Install via pip:
pip install color_ascii_magic_genai
Usage
Import the colorize_text function and use it in your scripts.
Basic Usage
from color_ascii_magic_genai import colorize_text
# Print text in a specific color
print(colorize_text("Hello World", color="red"))
Random Color
Let the package decide the color for you:
# Random color for the whole text
print(colorize_text("Surprise Me!", color="random"))
Rainbow Mode
Go wild with multi-colored characters:
# Each character gets a random color
print(colorize_text("Rainbow Magic", color="rainbow"))
Supported Colors
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- random (special mode)
- rainbow (special mode)
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file color_ascii_magic_genai-0.0.3.tar.gz.
File metadata
- Download URL: color_ascii_magic_genai-0.0.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b7cdd73ad9f4f1e9e110f31a0c522f159e6d425aede408987103c3ffd6d565
|
|
| MD5 |
aadc74614dc55c5c9231342a8a90901e
|
|
| BLAKE2b-256 |
990e8681cfdb110fd32edc23316a145ec6c5c748d8b63c3b20dbedea912be0f2
|
File details
Details for the file color_ascii_magic_genai-0.0.3-py3-none-any.whl.
File metadata
- Download URL: color_ascii_magic_genai-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40256ba501a1bba7d6508452acd00fbc355b01639a4c9702687c451a360c7fa3
|
|
| MD5 |
f2cc046245bab6c84dba117d2ccdaedd
|
|
| BLAKE2b-256 |
86fb32d5beda30a98473d2d8a44abe42b271aab37ba49758addd3d4b226e11b2
|