Skip to main content

ASCII Banner Generator

Overview

The ASCII Banner Generator is a command-line tool that converts text into stylish ASCII art banners. It supports multiple font styles, text alignment, and width customization. The tool is inspired by TAAG and utilizes the pyfiglet library for rendering text.

Features

  • Convert text into ASCII banners using a variety of fonts.
  • Supports different text alignments (left, center, right).
  • Adjustable banner width for better formatting.
  • Copy generated banners directly to the clipboard.
  • List available fonts with descriptions.

Requirements

This script requires Python 3.x and the following dependencies:

  • pyfiglet (for ASCII text rendering)
  • pyperclip (for clipboard functionality)
  • argparse (for command-line argument parsing)

If not installed, the script will automatically attempt to install missing packages.

Installation

You can install the tool via pip or GitHub.

Install via pip:

pip install bannerutils

Install from GitHub:

  1. Clone this repository:
    git clone https://github.com/jfrzz/bannerutils.git
    
  2. Navigate to the directory:
    cd ascii-banner-generator
    
  3. Run the script:
    python banner.py --help
    

Usage

Basic command format:

python banner.py "Your Text Here" [-f FONT] [-w WIDTH] [-a ALIGN] [--fonthelp]

Example Commands

  1. Generate a simple ASCII banner:
    python banner.py "Hello, World!"
    
  2. Use a specific font:
    python banner.py "Hello" -f slant
    
  3. Adjust banner width:
    python banner.py "Wide Text" -w 100
    
  4. Center-align text:
    python banner.py "Centered" -a center
    
  5. List available fonts with descriptions:
    python banner.py --fonthelp
    

Available Fonts

The tool supports various fonts, including:

  • slant: Slanted letters for a stylish effect.
  • big: Large and bold text.
  • bubble: Rounded bubble-like letters.
  • digital: Digital clock-style font.
  • gothic: Fancy gothic-style text.
  • isometric: Multiple 3D isometric variations.
  • starwars: Inspired by Star Wars title fonts.
  • And many more!

To see the full list, run:

python -m pyfiglet -l

Clipboard Support

After generating the banner, the script prompts you to copy it to the clipboard. Simply enter y to copy or n to skip.

License

This project is open-source and available under the MIT License.

Author

Created by [@JfrzxCode]


Metadata

Release files for bannerutils 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bannerutils 1.1.1
File Size Uploaded
bannerutils-1.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bannerutils 1.1.1
File Interpreter ABI Platform
bannerutils-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / bannerutils-1.1.1.tar.gz

Download URL bannerutils-1.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7e44f89c3446bbef3cfd29c0d6998968783ec8dd77a899ff19136813e60109d
BLAKE2b-256 checksum
How to use checksums
31a350a5eec2cc61f6175e9311475d479b7b8b774d53b8979e06416771b9ad1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / bannerutils-1.1.1-py3-none-any.whl

Download URL bannerutils-1.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4b4577f2d96adae08415b7adbfb27d88ef552638efc5008f8d987d6683cda72
BLAKE2b-256 checksum
How to use checksums
f07b2e888a10501cc84737f55486ade106dc9a20ac3c271ae1fcb653d74f5356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page