pyerualjetwork 4.0.5__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
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
+ )