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.0.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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: animated_pystyle-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 92a85eee41b9c24fe59d1124cbf7582af5209a1935f8175c3c82d10eddc01ffa
MD5 8e90e845cf35249b51ee43931cc10cac
BLAKE2b-256 43312b72993768fa3e0b1de65b6a7ca29376ab20b534d8ac8a254b879bf9fbc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for animated_pystyle-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e095b21743f83ca905059760e2b756aab78bb56e1f907d1a450c280914a55bf
MD5 62a81bea78ae0c5deb2ff81e47d7e527
BLAKE2b-256 4bbd83a3a47f3ad680a315bc2e6f13f15f25923489dc45a43cd2ee7436ee000a

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