Skip to main content

ArtAPI

Simple Python library for beautiful animated ASCII banners in the terminal.

Features

  • ✨ Typing animation
  • ⚡ Glitch effect
  • 💡 Shine effect
  • 🌈 RGB grayscale colors
  • 🔁 Infinite animation loop
  • 📍 Automatic terminal centering

Installation

pip install artapi

Usage

from artapi import show, gradient, xcenter

banner = r"""
    _         _   
   / \   _ __| |_ 
  / _ \ | '__| __|
 / ___ \| |  | |_ 
/_/   \_\_|   \__|
"""

show(banner) # this will be with gradient and xcenter
print(gradient(xcenter("Hello World!"))) # this is a vertically gradiented & centered text

Options

show(
    banner,
    typing=True,
    glitch=True,
    flash=True,
    shine=True,
    loop=False,
    speed=0.01
)
Parameter Description Default
typing Typing animation True
glitch Glitch effect True
flash Flash effect True
shine Shine animation True
loop Infinite shine loop False
speed Shine animation speed 0.01

Example

from artapi import show

banner = """
██╗  ██╗███████╗██╗     ██╗      ██████╗
██║  ██║██╔════╝██║     ██║     ██╔═══██╗
███████║█████╗  ██║     ██║     ██║   ██║
██╔══██║██╔══╝  ██║     ██║     ██║   ██║
██║  ██║███████╗███████╗███████╗╚██████╔╝
╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝
"""

show(banner)

Requirements

  • Python 3.8+

License

MIT

Metadata

Release files for artapi 1.0.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 artapi 1.0.1
File Size Uploaded
artapi-1.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / artapi-1.0.1.tar.gz

Download URL artapi-1.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6c6694cd4ad97112d60cc9dd407969750a038e025474883a1856416e00a45c6a
BLAKE2b-256 checksum
How to use checksums
ff2471c9e606e7441d57c2fbf503bf8da08f139e20959e34d8d720d41e0db105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / artapi-1.0.1-py3-none-any.whl

Download URL artapi-1.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af014b14f60956ad8b53f05a448e75275db85e192759eaaa0a1943e8404f6ab8
BLAKE2b-256 checksum
How to use checksums
c9acb29a184ced157e5622f002943ae24187b457b1b253fa4818843ec96aa760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

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