pyerualjetwork 4.0.5__py3-none-any.whl

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.
pyerualjetwork/ui.py ADDED
@@ -0,0 +1,22 @@
1
+ from tqdm import tqdm
2
+
3
+ def loading_bars():
4
+
5
+ GREEN = "\033[92m"
6
+ RESET = "\033[0m"
7
+
8
+ bar_format_normal = f"{GREEN}{{bar}}{GREEN} {RESET} {{l_bar}} {{remaining}} {{postfix}}"
9
+ bar_format_learner = f"{GREEN}{{bar}}{GREEN} {RESET} {{remaining}} {{postfix}}"
10
+
11
+ return bar_format_normal, bar_format_learner
12
+
13
+
14
+ def initialize_loading_bar(total, desc, ncols, bar_format, leave=True):
15
+ return tqdm(
16
+ total=total,
17
+ leave=leave,
18
+ desc=desc,
19
+ ascii="▱▰",
20
+ bar_format=bar_format,
21
+ ncols=ncols,
22
+ )