Skip to main content

Lightweight Operational Progress Kit (LOPK) - Advanced progress bar and terminal operation toolkit

Project description

LOPK (Lightweight Operational Progress Kit)

A lightweight and versatile Python library for creating beautiful terminal progress indicators, spinners, countdown timers, and terminal utilities.

Features

  • ProgressBar: Customizable progress bars with color support, ETA, and time tracking
  • Spinner: Animated loading indicators with context manager support
  • CountdownTimer: Simple countdown timer functionality
  • MultiProgressBar: Manage multiple progress bars simultaneously
  • Terminal Utilities: Clear terminal screen, colored text output, and more

Installation

pip install lopk

Optional GUI Support

pip install lopk[gui]

Usage Examples

Basic Progress Bar

from main.lopk import ProgressBar

pb = ProgressBar(total=100, title="Downloading", color="green")
for i in range(101):
    pb.update(i)
    time.sleep(0.1)
pb.finish()

Spinner

from main.lopk import Spinner

with Spinner("Loading...", spinner_type="dots"):
    # Your long-running task here
    time.sleep(3)

Countdown Timer

from main.lopk import CountdownTimer

timer = CountdownTimer(10, "Time left")
timer.start()

Demo

Run the interactive demo:

lopk-demo

Run the GUI demo:

lopk-demo-tk

License

GNU General Public License v3.0

GitHub Repository

https://github.com/l-love-china/lopk

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

lopk-0.0.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

lopk-0.0.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file lopk-0.0.0.tar.gz.

File metadata

  • Download URL: lopk-0.0.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for lopk-0.0.0.tar.gz
Algorithm Hash digest
SHA256 ca3d54011410dd7f981c12754f51224fc1e362eee56ad9ad488cf79d30aec1ff
MD5 9a2922d25d93e8461fd3f6cdbeeead2f
BLAKE2b-256 e685570be75d28598f56b6f22c08a84010b8c5156c980d7f2e9027fb7c24bc06

See more details on using hashes here.

File details

Details for the file lopk-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: lopk-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for lopk-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7307b8436627b70b3a265cf9d31648a2a0c37d81482bb28940d857b3d7054e1c
MD5 798f9ff78494c5c5e6dc9c4dde2ad67b
BLAKE2b-256 a3493a74b117293c9e1880c214c1f0f551a0d8d3ffe25c3a377b92f4501e244e

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