Skip to main content

Animator is a terminal based animation library for python.

Project description

Animator

Animator is a terminal based animation library for python.

Installation

  • Using the package manager pip to install Animator.
pip install animator
  • Or you can install using the zip file. Go to the directory where you extracted the zip and run
python setup.py install

Usage

import Animator as anim

anim.expand() # makes a expanding animation
anim.contract() # makes a contracting animation
  1. expand(width, height, color="\033[0m", print_char="#", time_p_f=0.1)
  • width is the width of the console which you can give as os.get_terminal_size().columns
  • height is the height of the console which you can give as os.get_terminal_size().lines
  • color is the ansi code for color of the animation. It deafaults to "\033[0m".
  • print_char is the character which will be used to make the animation. It deafauts to "#".
  • time_p_f is the time in seconds between every frame. It deafaults to 0.1.
  1. contract(width, height, color="\033[0m", print_char="#", time_p_f=0.1)
  • width is the width of the console which you can give as os.get_terminal_size().columns
  • height is the height of the console which you can give as os.get_terminal_size().lines
  • color is the ansi code for color of the animation. It deafaults to "\033[0m".
  • print_char is the character which will be used to make the animation. It deafauts to "#".
  • time_p_f is the time in seconds between every frame. It deafaults to 0.1.

Platform

Animator is OS Independent.

Sample

Samples can be found here.

Contributing

Animator is open to contribution. You can contribute here.

Maintainers

  • (Tanish Yadav)[https://github.com/tanishyadav/]

Issues

If you find a bug or issue, you can raise an issue here.

License

GNU GPLv3

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

animator-0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

animator-0.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file animator-0.1.tar.gz.

File metadata

  • Download URL: animator-0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

File hashes

Hashes for animator-0.1.tar.gz
Algorithm Hash digest
SHA256 197e740d599191a440899ad2a1f85edbb26a5b408721a3f30dc02b181d7eca95
MD5 ac8b5c8b439dd756ca8f3683293b3573
BLAKE2b-256 b72516062c0c55d653c65c893afd04bf4bf39edaa652d6d8d660a10c3d24a9cc

See more details on using hashes here.

File details

Details for the file animator-0.1-py3-none-any.whl.

File metadata

  • Download URL: animator-0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

File hashes

Hashes for animator-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd280ecb4b0c4c30b97e9d6f8e78aaf3b0e0e850911cb4f37a8980923981661e
MD5 f5ffa65394a7dc85f034e5bc1595a390
BLAKE2b-256 fb7fe90e859c0be988ece8b5385f9d0b1b65e22e12736e88f336008fb9b98c44

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page