A small example package for generating colored ASCII art
Project description
Color ASCII Magic GenAI 🎨✨
Welcome to Color ASCII Magic GenAI! I built this little tool because I love terminal art but found it tedious to manually colorize output or glue together different libraries just to get something cool on the screen.
This package basically takes the heavy lifting out of generating ASCII art and makes it pop with colors. Whether you want a specific color, a random surprise, or a full-on rainbow effect, I've got you covered.
Why use this?
- It's simple: One function request does it all.
- It's fun: The
rainbowmode is perfect for CLI tools that need a bit of personality. - It works: Built on top of the solid
artandtermcolorlibraries.
Installation
You can grab it straight from PyPI:
pip install color_ascii_magic_genai
How to Use
It's super tailored for ease of use. Here is how I typically use it in my projects:
1. The Basics
Just import colorize_text and pass your string.
from color_ascii_magic_genai import colorize_text
# Classic red
print(colorize_text("Warning!", color="red"))
2. Feeling Lucky? 🎲
Use random mode if you can't decide. It picks one color for the whole block.
print(colorize_text("Surprise Me", color="random"))
3. The "Rainbow" Mode 🌈
This is my favorite feature. It iterates through every character and assigns a random color. It looks chaotic and beautiful.
print(colorize_text("UNICORN POWER", color="rainbow"))
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
text |
str |
(Required) | The text you want to convert. |
color |
str |
'white' |
Choose from standard colors or special modes like 'random' / 'rainbow'. |
font |
str |
'block' |
The ASCII font style. Passed directly to the art library. |
Supported Colors
I support all the standard terminal colors:
red,green,yellow,blue,magenta,cyan,white
Plus the special modes:
random(Pick one random color)rainbow(Every character allows a different color)
Contributing
If you have ideas for more cool modes (maybe a gradient or specific patterns?), feel free to open an issue or PR. I'm always open to making this more fun!
License
MIT License. Do whatever you want with it! 🤘
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.5.tar.gz.
File metadata
- Download URL: color_ascii_magic_genai-0.0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbc4d655566c91a2c3f046a0e31086e7e652b5cb6447dd8e10b92a7f7de88162
|
|
| MD5 |
19b3a2cb4e744dedd808afb640e4eedc
|
|
| BLAKE2b-256 |
a3375278293738ebb42cc8e0bafc14a1b0a6c8067264e4956dfc74f0733d7391
|
File details
Details for the file color_ascii_magic_genai-0.0.5-py3-none-any.whl.
File metadata
- Download URL: color_ascii_magic_genai-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
d69ee369bbf4b7aa2a954383589251418522567079ca81a6c353eacb79e20da6
|
|
| MD5 |
2206f1813fa811f5089d0a1dfb5946f4
|
|
| BLAKE2b-256 |
570073e59899505a251cdca22baf4dfb909333bffa10ad0f1ce68d663921f411
|