Skip to main content

Rainbow ASCII Art Generator

Project description

pmoschos_art_gen 🌈

A Rainbow ASCII Art Generator for the terminal.

Total ViewsPython GitHub last commit License

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

📢 Stay Updated

Be sure to ⭐ this repository to stay updated with new examples and enhancements!

📄 License

🔐 This project is protected under the MIT License.

Contact 📧

Panagiotis Moschos - pan.moschos86@gmail.com

🔗 Note: This is a Python script and requires a Python interpreter to run.


Happy Coding 👨‍💻

Made with ❤️ by Panagiotis Moschos (https://github.com/pmoschos)

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.0.tar.gz (5.2 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.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmoschos_art_gen-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8e80f6bca86022a7b4bea59993a26107654ac180a85b8ff1bba5c06dc336485b
MD5 fe3e5bd3c67a455cbceddb235e2cd0da
BLAKE2b-256 aae483d2fdcc3af0ee9a264cbdc0532a802f4962090b97e7426ae7cddce799cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pmoschos_art_gen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da21af329f62859d157db2b42616cbe3b54e2e0a7fff1cb5fe9a6d5bec1b0004
MD5 ef84986ba26068da8c44198648f0120d
BLAKE2b-256 b88081d1ca4a6511b8d17a5d1313a41c2062917d4324762c07f1315fed0dc1d8

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