tui-utilities 1.0.6__py3-none-any.whl → 1.0.7__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.
- tui_utilities/structure.py +62 -5
- {tui_utilities-1.0.6.dist-info → tui_utilities-1.0.7.dist-info}/METADATA +1 -1
- {tui_utilities-1.0.6.dist-info → tui_utilities-1.0.7.dist-info}/RECORD +5 -5
- {tui_utilities-1.0.6.dist-info → tui_utilities-1.0.7.dist-info}/WHEEL +0 -0
- {tui_utilities-1.0.6.dist-info → tui_utilities-1.0.7.dist-info}/top_level.txt +0 -0
tui_utilities/structure.py
CHANGED
|
@@ -46,13 +46,70 @@ def confirm_exit(
|
|
|
46
46
|
selection = _choose_option(options, f"\n{message}", selection_text, error)
|
|
47
47
|
if selection == "1": sys.exit()
|
|
48
48
|
|
|
49
|
-
def separator(
|
|
49
|
+
def separator(
|
|
50
|
+
length = 100,
|
|
51
|
+
color = "#ffffff",
|
|
52
|
+
aligment = "left",
|
|
53
|
+
padding = 0,
|
|
54
|
+
top_padding = None,
|
|
55
|
+
right_padding = None,
|
|
56
|
+
bottom_padding = None,
|
|
57
|
+
left_padding = None
|
|
58
|
+
):
|
|
59
|
+
print(object = "/" + "-" * length + "/",
|
|
60
|
+
color = color,
|
|
61
|
+
bold = True,
|
|
62
|
+
alignment = aligment,
|
|
63
|
+
padding = padding,
|
|
64
|
+
top_padding = top_padding,
|
|
65
|
+
right_padding = right_padding,
|
|
66
|
+
bottom_padding = bottom_padding,
|
|
67
|
+
left_padding = left_padding
|
|
68
|
+
)
|
|
50
69
|
|
|
51
|
-
def error_message(
|
|
70
|
+
def error_message(
|
|
71
|
+
message,
|
|
72
|
+
error,
|
|
73
|
+
separator_length = 100,
|
|
74
|
+
separator_color = "#ffffff",
|
|
75
|
+
separator_aligment = "left",
|
|
76
|
+
separator_padding = 0,
|
|
77
|
+
separator_top_padding = None,
|
|
78
|
+
separator_right_padding = None,
|
|
79
|
+
separator_bottom_padding = None,
|
|
80
|
+
separator_left_padding = None
|
|
81
|
+
):
|
|
52
82
|
print(f"{message}\n", color = "#ff0000", bold = True)
|
|
53
|
-
separator(
|
|
83
|
+
separator(
|
|
84
|
+
length = separator_length,
|
|
85
|
+
color = separator_color,
|
|
86
|
+
aligment = separator_aligment,
|
|
87
|
+
padding = separator_padding,
|
|
88
|
+
top_padding = separator_top_padding,
|
|
89
|
+
right_padding = separator_right_padding,
|
|
90
|
+
bottom_padding = separator_bottom_padding,
|
|
91
|
+
left_padding = separator_left_padding
|
|
92
|
+
)
|
|
54
93
|
print(f"Error: {error}", bold = True)
|
|
55
|
-
separator(
|
|
94
|
+
separator(
|
|
95
|
+
length = separator_length,
|
|
96
|
+
color = separator_color,
|
|
97
|
+
aligment = separator_aligment,
|
|
98
|
+
padding = separator_padding,
|
|
99
|
+
top_padding = separator_top_padding,
|
|
100
|
+
right_padding = separator_right_padding,
|
|
101
|
+
bottom_padding = separator_bottom_padding,
|
|
102
|
+
left_padding = separator_left_padding
|
|
103
|
+
)
|
|
56
104
|
print("Detalles:\n", bold = True)
|
|
57
105
|
print(traceback.format_exc(), color = "#00bfff")
|
|
58
|
-
separator(
|
|
106
|
+
separator(
|
|
107
|
+
length = separator_length,
|
|
108
|
+
color = separator_color,
|
|
109
|
+
aligment = separator_aligment,
|
|
110
|
+
padding = separator_padding,
|
|
111
|
+
top_padding = separator_top_padding,
|
|
112
|
+
right_padding = separator_right_padding,
|
|
113
|
+
bottom_padding = separator_bottom_padding,
|
|
114
|
+
left_padding = separator_left_padding
|
|
115
|
+
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
tui_utilities/__init__.py,sha256=8WIoKhRFLM4Bcdd7W3grDoBgfSR0HFWxTsP4ON6Il-E,775
|
|
2
2
|
tui_utilities/console.py,sha256=eOj-5nq8WqMwP7eamIDjbOpnPQU4e6XLAz0VxTaHU6g,5447
|
|
3
3
|
tui_utilities/format.py,sha256=6Ou6aeRku1Fb5Nf0tKmCgh8CIsh3sRJZogog-f5_igc,657
|
|
4
|
-
tui_utilities/structure.py,sha256=
|
|
4
|
+
tui_utilities/structure.py,sha256=OUm8ACUascgXk15fnrsngFynWA0rvQpQk-vM0MlA_F0,3737
|
|
5
5
|
tui_utilities/validation.py,sha256=Vz-gdOj2ZlWl5j2Hf8RMymxqdJvGTD8Duq4feFcsAlM,6637
|
|
6
6
|
tui_utilities/_tlds/tlds.txt,sha256=ieHVMCtLqEoh8aiMZIZPepNdOjR3CGlO2QgH5LKCRuI,10916
|
|
7
|
-
tui_utilities-1.0.
|
|
8
|
-
tui_utilities-1.0.
|
|
9
|
-
tui_utilities-1.0.
|
|
10
|
-
tui_utilities-1.0.
|
|
7
|
+
tui_utilities-1.0.7.dist-info/METADATA,sha256=VrhbE1EXaMAHKWhrHsvbqPL4tsMf1lEu5U5qrc0aTGU,4249
|
|
8
|
+
tui_utilities-1.0.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
9
|
+
tui_utilities-1.0.7.dist-info/top_level.txt,sha256=TF1KuV0fMB1rkFRhqaCkqjprAnH-Tpc4Klsxwif5RWI,14
|
|
10
|
+
tui_utilities-1.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|