Skip to main content

Rainbow ASCII Art Generator

Project description

🐍 pmoschos_art_gen 🌈

A Simple Colorful Rainbow ASCII Art Generator.

Installation

pip install pmoschos_art_gen

Usage

Command Line

Once installed, you can use the pmoschos-art command in your terminal:

# Provide text directly
pmoschos-art "Hello World"

# Disable horizontal centering
pmoschos-art "Hello World" --no-center

# Disable vertical centering
pmoschos-art "Hello World" --no-vcenter

# Disable both
pmoschos-art "Hello World" --no-center --no-vcenter

# Use interactive mode
pmoschos-art

Use double spaces to create new lines:

pmoschos-art "Hello  World"

Python API

You can also use pmoschos_art_gen in your Python scripts:

from pmoschos_art_gen import generate_rainbow_ascii

# Generate rainbow ASCII art
art = generate_rainbow_ascii("Hello World")
print(art)

# No centering
art = generate_rainbow_ascii("Hello World", center=False, vertical_center=False)
print(art)

# Horizontal centering only
art = generate_rainbow_ascii("Hello World", center=True, vertical_center=False)
print(art)

# Vertical centering only
art = generate_rainbow_ascii("Hello World", center=False, vertical_center=True)
print(art)

# Create multi-line text with double spaces
art = generate_rainbow_ascii("Hello  World  !")
print(art)
from pmoschos_art_gen import render_ascii_lines, center_ascii_output

# Generate raw ASCII art lines without centering
lines = ["Hello", "World"]
ascii_lines = render_ascii_lines(lines)
print("\n".join(ascii_lines))

# Apply centering to existing lines
centered_lines = center_ascii_output(ascii_lines, vertical=True)
print("\n".join(centered_lines))

Features

  • Rainbow colored ASCII art 🌈
  • Multiple line support
  • Auto-centering in the terminal
  • Simple API for integration
  • Command-line interface

License

This project is protected under the MIT License.

Contact

Panagiotis Moschos - www.linkedin.com/in/panagiotis-moschos

👨‍💻 Happy Coding 👨‍💻

Made by Panagiotis Moschos

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

pmoschos_art_gen-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

pmoschos_art_gen-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pmoschos_art_gen-0.1.1.tar.gz.

File metadata

  • Download URL: pmoschos_art_gen-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pmoschos_art_gen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d1bc9cc096db3674022fec7d4f7634ecd118ea6956b2b8104daa0e83ca4de67
MD5 8a2f5cb5000c0820be13a41e2750eebd
BLAKE2b-256 2f6ccd4109a67083a913bf96843575e8cbae5f047f79b460a5411ac1c2c76f3e

See more details on using hashes here.

File details

Details for the file pmoschos_art_gen-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pmoschos_art_gen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87766ee6cb450c30d1438738539e7fbc4718f8128a5e5d5381aa847e04e92087
MD5 f5777c7ee5f74296bedc116e6a61ce9c
BLAKE2b-256 374cd7ded6e0011c3332e780e9c34a9400638c5a114866a950357e6b5a6a8391

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