Skip to main content

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()
scene.clear()

Audio – Play sounds:

audio = animpy.Audio()
audio.load("bg", "music.mp3")
audio.play("bg", loop=-1)
audio.stop_all()

Version History

v1.3.5

  • Added scene.clear method to clear the scene

Made with ❤️ by a human.

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

animpy-1.3.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

animpy-1.3.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file animpy-1.3.5.tar.gz.

File metadata

  • Download URL: animpy-1.3.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for animpy-1.3.5.tar.gz
Algorithm Hash digest
SHA256 4c71142e6a829011b63a671f3fe3db4a09299f9804c54166398218e2af77ca24
MD5 1f905f308ebfe4bceb9a2b7d9f52c16f
BLAKE2b-256 210ecdc56bd617473377bd0ce8d0ace1d9ec88d82c8c50ec63afbe50390f5e24

See more details on using hashes here.

File details

Details for the file animpy-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: animpy-1.3.5-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

Hashes for animpy-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b02f6dc7eec308d77b0ae74b3d78f33a8d716f52b8f96df6b67a388f602b9797
MD5 f1a5e70c44f6ad6606cac1ae27cda288
BLAKE2b-256 8dc0ce5e6446e86e5cd940b8acbb30dc9d872acd56b05b6e493f88fc2df53827

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