Skip to main content

asciigenator

A lightweight Python library for generating ASCII art from text.

PyPI version Python Versions License Python application Coverage

Table of Contents


Installation

  • Clone the repository:

    git clone https://github.com/bhatishan2003/asciigenator.git
    cd asciigenator
    
  • Install the package:

    pip install .
    
  • For development (editable mode):

    pip install -e .
    

Usage

Basic Python Usage

import asciigenator

# Test simple font
print("=== Simple Font ===")
print(asciigenator.generate("Hello", font="simple"))

# === Simple Font ===
#  *   **  ** *** ***  ** *** *   *
# * * *   *    *   *  *   *   **  *
# ***  *  *    *   *  * * **  * * *
# * *   * *    *   *  * * *   *  **
# * * **   ** *** ***  ** *** *   *

print("\n=== Block Font ===")
print(asciigenator.generate("Ishan", font="block"))

# === Block Font ===
#   █
#  █ █  ████  ████ █████ █████  ████ █████  █   █
#  █ █  █     █       █     █   █     █     ██  █
# █████  ███  █       █     █   █  ██ ████  █ █ █
# █   █     █ █       █     █   █   █ █     █  ██
# █   █ ████   ████ █████ █████  ████ █████ █   █

print("\n=== Available Fonts ===")
print(asciigenator.list_fonts())

# === Available Fonts ===
# ['block', 'simple']

Command Line Usage

asciigenator "Hello World"
asciigenator "Hello World" --font block
asciigenator --list-fonts
asciigenator "Hello World" --font block  --border "#"
asciigenator "Hello World"  --font block --color magenta

Testing

Run all tests:

pytest -v

Metadata

Release files for asciigenator 0.0.6

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

Source distribution (sdist)

Source distribution for asciigenator 0.0.6
File Size Uploaded Provenance Actions
asciigenator-0.0.6.tar.gz 8.6 kB Without provenance Details for asciigenator-0.0.6.tar.gz

Built distribution (wheel)

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

Total release size: 15.5 kB

Release files / asciigenator-0.0.6.tar.gz

Download URL asciigenator-0.0.6.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cfd1ec86fc3c0b5d484b30ab6af68f24b0c6be64b45921046a54872db2aa3b6d
BLAKE2b-256 checksum
How to use checksums
610580d6fd4505f07f39edb096ee750de6f39c21fdd0924af8cca58eb73507ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / asciigenator-0.0.6-py3-none-any.whl

Download URL asciigenator-0.0.6-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea1eb8c504234cde1cd40220a68a66a71b2765e35c9eaeee8c7f941411b95b64
BLAKE2b-256 checksum
How to use checksums
1321f628f1e942e223197ab65f6e316d26dfaf024028ea49c9a01c3b8f3ab5cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for asciigenator 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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