Skip to main content

Advanced ASCII Banner Generator.

Project description

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]


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

bannerutils-1.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

bannerutils-1.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file bannerutils-1.1.1.tar.gz.

File metadata

  • Download URL: bannerutils-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bannerutils-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e7e44f89c3446bbef3cfd29c0d6998968783ec8dd77a899ff19136813e60109d
MD5 5236be5cc7722c21ec5a9191a6da702f
BLAKE2b-256 31a350a5eec2cc61f6175e9311475d479b7b8b774d53b8979e06416771b9ad1a

See more details on using hashes here.

File details

Details for the file bannerutils-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: bannerutils-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bannerutils-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b4577f2d96adae08415b7adbfb27d88ef552638efc5008f8d987d6683cda72
MD5 100fd0cd9b6c72fd882acefe35b008f8
BLAKE2b-256 f07b2e888a10501cc84737f55486ade106dc9a20ac3c271ae1fcb653d74f5356

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