Skip to main content

A customizable progress ring for terminal applications.

Project description

tijatools

Descriptions

The tijatools is a Python package that allows you to display dynamic and customizable progress rings in the terminal. It's an ideal tool for providing visual feedback on the status of long-running operations.

Installation

pip install tijatools

## Ussage
```bash
import asyncio
from tijatools import ProgressRing, AnimationMode

async def do_some_work(duration):
    await asyncio.sleep(duration)

class ATest:
    async def run_test(self, duration):
        ring = ProgressRing(rotate_symbols=['1', '2', '3', '4', '3', '2', '1'])
        print("ROTATE:")
        await ring.run_with_animation(do_some_work(duration), AnimationMode.ROTATE)
        print("BOUNCE:")
        await ring.run_with_animation(do_some_work(duration), AnimationMode.BOUNCE, shape="x")
        print("BOUNCE2:")
        await ring.run_with_animation(do_some_work(duration), AnimationMode.BOUNCE2)
        print("LOADING:")
        await ring.run_with_animation(do_some_work(duration), AnimationMode.LOADING)

if __name__ == "__main__":
    test = ATest()
    asyncio.run(test.run_test(10))

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tijatools-0.1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file tijatools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tijatools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for tijatools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c81aa4c6ebf41023837b02e390a35a4ee7b8de82c58c358df4a92e31c5af2949
MD5 9543eaa927daa03cee3acf3c49a6b972
BLAKE2b-256 7265aed07d1a88654131bf8176683bc26270151ae93f27808fb8f657d06be72c

See more details on using hashes here.

Supported by

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