Skip to main content

Animated ASCII art renderer for Python terminals.

Project description

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

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

artapi-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

artapi-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file artapi-1.0.0.tar.gz.

File metadata

  • Download URL: artapi-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for artapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 95a478d029467517fd6afb82ff28952a0699d4865e62248802a9cc2a9572b4ff
MD5 90f3a6f53200d4d5f14ca535568fa99f
BLAKE2b-256 35cfd1d675ee1b65f13bc1a60bbcab09f4e665d92cd9436b471d9339f299ef20

See more details on using hashes here.

File details

Details for the file artapi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: artapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for artapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5de0b4b25668a7b9b0702b6513836d99f5bff4f4ac721d77f44538fb894802bb
MD5 2fe7136b852b19cafaccb876d0580728
BLAKE2b-256 85304b3f2d0fcb55d5a3882cb000e0855e98c00ce6b9ed692981601525006128

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