Pi66

git.pi66.xyz
A web interface for the pi66.xyz Git server
git clone https://git.pi66.xyz/git.pi66.xyz

src/plugins/progress.py

1
2
3
4
5
6
7
8
9
import sys


def progress(label, current, total):
    print(f"\r\033[K[{label}]: [{current}/{total}]", end="", flush=True)


def progress_done(label, total):
    print(f"\r\033[K[{label}]: [{total}/{total}] done")