Skip to main content

Animated colored gradient text for ANSI terminals

Project description

animated_pystyle

animated_pystyle is a lightweight Python library for rendering animated, colored text in a terminal using 24-bit ANSI escape codes.

Install

From PyPI:

pip install animated_pystyle

Or directly from GitHub:

pip install git+https://github.com/zalcus/animated_pystyle.git

Quick start

from animated_pystyle import animate_text

animate_text(
    text="Animated gradient text!",
    colors=[(255, 0, 255), (0, 255, 255), (255, 255, 0)],
    duration=3,
    speed=2.2,
    spacing=0.35,
    fps=30,
)

Class-based API

from animated_pystyle import AnimatedGradient

animator = AnimatedGradient(
    text="Hello from animated_pystyle",
    colors=[(255, 80, 80), (80, 80, 255), (80, 255, 180)],
    speed=2.0,
    spacing=0.3,
    fps=20,
)

animator.animate(duration=2)

Publish to PyPI

If you maintain this package and want it downloadable via pip install animated_pystyle:

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Notes

  • Requires a terminal with true-color support.
  • Press Ctrl+C to stop long-running animations.

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

animated_pystyle-0.3.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

animated_pystyle-0.3.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file animated_pystyle-0.3.1.tar.gz.

File metadata

  • Download URL: animated_pystyle-0.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for animated_pystyle-0.3.1.tar.gz
Algorithm Hash digest
SHA256 29c73be58da767b26e0445429936dce4871dc80e35f01942f1e982992b5b0a15
MD5 eb18d9f7069958d9349bf2a374f4d4b9
BLAKE2b-256 d78645c5fedc5d63d1b29ebea59fee1b75d842b714a6eb42651c717c44ecb5ca

See more details on using hashes here.

File details

Details for the file animated_pystyle-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for animated_pystyle-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d62e40443c6dac7cf29812c980d653edb9a4f430b40dbd08901057f7d3915d
MD5 07c1ba49e9123e8fe69f433c04954cfb
BLAKE2b-256 d84a1d45ee94f8266f1870e241af30bc4fd5005a435b74c505493ed3e4462881

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