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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a478d029467517fd6afb82ff28952a0699d4865e62248802a9cc2a9572b4ff
|
|
| MD5 |
90f3a6f53200d4d5f14ca535568fa99f
|
|
| BLAKE2b-256 |
35cfd1d675ee1b65f13bc1a60bbcab09f4e665d92cd9436b471d9339f299ef20
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de0b4b25668a7b9b0702b6513836d99f5bff4f4ac721d77f44538fb894802bb
|
|
| MD5 |
2fe7136b852b19cafaccb876d0580728
|
|
| BLAKE2b-256 |
85304b3f2d0fcb55d5a3882cb000e0855e98c00ce6b9ed692981601525006128
|