eaf-base-api 1.6.1__tar.gz → 1.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/PKG-INFO +1 -1
- eaf_base_api-1.6.2/base_api/__init__.py +5 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/base_api/modules/progress_bars.py +6 -2
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/eaf_base_api.egg-info/PKG-INFO +1 -1
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/setup.py +1 -1
- eaf_base_api-1.6.1/base_api/modules/__init__.py +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/README.md +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/base_api/base.py +0 -0
- {eaf_base_api-1.6.1/base_api → eaf_base_api-1.6.2/base_api/modules}/__init__.py +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/base_api/modules/consts.py +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/base_api/modules/download.py +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/base_api/modules/quality.py +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-1.6.1 → eaf_base_api-1.6.2}/setup.cfg +0 -0
|
@@ -10,12 +10,16 @@ class Callback:
|
|
|
10
10
|
print(f"Downloaded: {downloaded} bytes / {total} bytes ({percentage:.2f}%)")
|
|
11
11
|
|
|
12
12
|
@classmethod
|
|
13
|
-
def text_progress_bar(cls, downloaded, total):
|
|
13
|
+
def text_progress_bar(cls, downloaded, total, title=False):
|
|
14
14
|
bar_length = 50
|
|
15
15
|
filled_length = int(round(bar_length * downloaded / float(total)))
|
|
16
16
|
percents = round(100.0 * downloaded / float(total), 1)
|
|
17
17
|
bar = '#' * filled_length + '-' * (bar_length - filled_length)
|
|
18
|
-
|
|
18
|
+
if title is False:
|
|
19
|
+
print(f"\r[{bar}] {percents}%", end='')
|
|
20
|
+
|
|
21
|
+
else:
|
|
22
|
+
print(f"\r | {title} | -->: [{bar}] {percents}%", end='')
|
|
19
23
|
|
|
20
24
|
@staticmethod
|
|
21
25
|
def update_progress(downloaded, total, animation_phase):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|