Skip to main content

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 rainbow mode is perfect for CLI tools that need a bit of personality.
  • It works: Built on top of the solid art and termcolor libraries.

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

color_ascii_magic_genai-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

color_ascii_magic_genai-0.0.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file color_ascii_magic_genai-0.0.4.tar.gz.

File metadata

  • Download URL: color_ascii_magic_genai-0.0.4.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

Hashes for color_ascii_magic_genai-0.0.4.tar.gz
Algorithm Hash digest
SHA256 237cc78bd91cda97f0718f9aa0f8239fdedb6e9cfb85415c23878f09c0acecee
MD5 a21331dfac040b374b0e9eaf904b7f50
BLAKE2b-256 df56a331a813f65e2e2a09307ffad0e2e4f5e7cefd3191c01dd2169214c83b02

See more details on using hashes here.

File details

Details for the file color_ascii_magic_genai-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for color_ascii_magic_genai-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 199a6f9360149c32db9e877c28af13b0a00fd62ff317fb0d3aa3ac4d4dca1648
MD5 8ea2515cde0c8f3f0eb525ff867705fe
BLAKE2b-256 67bc360aaba5a6a8889aab66d4484a859eb984233e72a43b208e7185cfae6415

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page