mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-15 03:41:16 +01:00
18 lines
401 B
Python
18 lines
401 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import codecs
|
|
import time
|
|
from progress.spinner import PixelSpinner
|
|
|
|
|
|
class ProgressBar:
|
|
|
|
@staticmethod
|
|
def bar(message, filename):
|
|
""" Creating progress bar. """
|
|
spinner = PixelSpinner(f'{message} {filename} ')
|
|
# print('\033[F', end='', flush=True)
|
|
while True:
|
|
time.sleep(0.1)
|
|
spinner.next()
|