A simple terminal animation library
Project description
Animpy 🎬
Make cool terminal animations without the pain. Move text around, use RGB colors, play audio, and build actual animations. Works great on modern terminals.
Install
pip install animpy
Quick Start
import animpy
scene = animpy.Scene()
text = animpy.Text("Hello!", 10, 5, r=255, g=100, b=50)
scene.add(text)
scene.render()
How It Works
Text – Create animated text:
text = animpy.Text("Hi", 0, 0, r=255, g=0, b=0)
text.moveX(10) # Move right
text.moveY(5) # Move down
text.centerX() # Center horizontally
text.change_rgb_values(0, 255, 0) # Change color
text.type_out("Type me!", speed=0.05, scene=scene) # Type effect
text.fall(velocity=2, floor=15) # Falling effect
text.change_frame() # Cycle through frames (if you used a list)
Scene – Render everything:
scene = animpy.Scene()
scene.add(text1, text2, text3)
scene.render()
Audio – Play sounds:
audio = animpy.Audio()
audio.load("bg", "music.mp3")
audio.play("bg", loop=-1)
audio.stop_all()
What's New (v1.3)
- Cleaner output – Animations only take a few lines
- Audio – Play MP3s and WAVs without freezing
- Better colors – Smooth RGB effects
- No ugly errors – Clean exit on Ctrl+C
- Rainbow effects – Character-by-character color cycling
Made with ❤️ by a human.
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
animpy-1.3.1.tar.gz
(4.1 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 animpy-1.3.1.tar.gz.
File metadata
- Download URL: animpy-1.3.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
168656bafd8784b4659e80cd12c4ed5f1f0c14709bd8666e86a4031e36f1636e
|
|
| MD5 |
7af70a7275f6411b8e11c28ec60af742
|
|
| BLAKE2b-256 |
01b20db814fb80abe353a18138ef1c1543a012b1d38e6d5512278f19d2202576
|
File details
Details for the file animpy-1.3.1-py3-none-any.whl.
File metadata
- Download URL: animpy-1.3.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
140cd1977298238ddd97cb4ba4f3ac97ac22db00d9280c1e4cf6fdfd27ab14c5
|
|
| MD5 |
46901ca5c3119d6da292584133ebfd8f
|
|
| BLAKE2b-256 |
010b00664d266b1105ca87aefb05e2478569fb9cf284ae2a6b111318cc6850d8
|