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
Metadata
Release files for lopk 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lopk-0.0.0.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lopk-0.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / lopk-0.0.0.tar.gz
| Download URL | lopk-0.0.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca3d54011410dd7f981c12754f51224fc1e362eee56ad9ad488cf79d30aec1ff
|
|
BLAKE2b-256 checksum How to use checksums |
e685570be75d28598f56b6f22c08a84010b8c5156c980d7f2e9027fb7c24bc06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / lopk-0.0.0-py3-none-any.whl
| Download URL | lopk-0.0.0-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7307b8436627b70b3a265cf9d31648a2a0c37d81482bb28940d857b3d7054e1c
|
|
BLAKE2b-256 checksum How to use checksums |
a3493a74b117293c9e1880c214c1f0f551a0d8d3ffe25c3a377b92f4501e244e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|