bluer-options 5.162.1__py3-none-any.whl → 5.164.1__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.
- bluer_options/__init__.py +1 -1
- bluer_options/logger/__init__.py +1 -0
- bluer_options/logger/config.py +22 -8
- {bluer_options-5.162.1.dist-info → bluer_options-5.164.1.dist-info}/METADATA +1 -1
- {bluer_options-5.162.1.dist-info → bluer_options-5.164.1.dist-info}/RECORD +8 -8
- {bluer_options-5.162.1.dist-info → bluer_options-5.164.1.dist-info}/WHEEL +0 -0
- {bluer_options-5.162.1.dist-info → bluer_options-5.164.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_options-5.162.1.dist-info → bluer_options-5.164.1.dist-info}/top_level.txt +0 -0
bluer_options/__init__.py
CHANGED
bluer_options/logger/__init__.py
CHANGED
bluer_options/logger/config.py
CHANGED
|
@@ -87,6 +87,23 @@ def log_dict(
|
|
|
87
87
|
break
|
|
88
88
|
|
|
89
89
|
|
|
90
|
+
def log_list_as_str(
|
|
91
|
+
title: str,
|
|
92
|
+
list_of_items: list,
|
|
93
|
+
item_name_plural: str = "item(s)",
|
|
94
|
+
max_count: int = 5,
|
|
95
|
+
) -> str:
|
|
96
|
+
return "{} {} {}: {}".format(
|
|
97
|
+
title,
|
|
98
|
+
len(list_of_items),
|
|
99
|
+
item_name_plural,
|
|
100
|
+
", ".join(
|
|
101
|
+
list_of_items[:max_count]
|
|
102
|
+
+ (["..."] if len(list_of_items) > max_count else [])
|
|
103
|
+
),
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
|
|
90
107
|
def log_list(
|
|
91
108
|
logger: Logger,
|
|
92
109
|
title: str,
|
|
@@ -98,14 +115,11 @@ def log_list(
|
|
|
98
115
|
):
|
|
99
116
|
if not itemize:
|
|
100
117
|
logger.info(
|
|
101
|
-
|
|
102
|
-
title,
|
|
103
|
-
|
|
104
|
-
item_name_plural,
|
|
105
|
-
|
|
106
|
-
list_of_items[:max_count]
|
|
107
|
-
+ (["..."] if len(list_of_items) > max_count else [])
|
|
108
|
-
),
|
|
118
|
+
log_list_as_str(
|
|
119
|
+
title=title,
|
|
120
|
+
list_of_items=list_of_items,
|
|
121
|
+
item_name_plural=item_name_plural,
|
|
122
|
+
max_count=max_count,
|
|
109
123
|
)
|
|
110
124
|
)
|
|
111
125
|
return
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_options/__init__.py,sha256=
|
|
1
|
+
bluer_options/__init__.py,sha256=ycZcPPYI3RRRJJjlqpKIyhe5I33QkfN4w6gud4REJIg,288
|
|
2
2
|
bluer_options/__main__.py,sha256=-6ce9W1uXkle4YtEYlSUMWxSmsur3dRDA4_MvNNhEVg,236
|
|
3
3
|
bluer_options/config.env,sha256=2AG3xuWiMqaNmlCNDWQOJ_AssKk7KXhn0XDIkHWNQ2Q,30
|
|
4
4
|
bluer_options/elapsed_timer.py,sha256=46e-g-bjC7J4hGOGKD12R90ficXzFYn84xlLX6l34I8,545
|
|
@@ -51,8 +51,8 @@ bluer_options/host/__main__.py,sha256=A0Z-sAG9lVpQx9ULzroAINPw2sZyzouUvwrYU_8QtS
|
|
|
51
51
|
bluer_options/host/functions.py,sha256=SZnEaPp1dvQuWi8K_skwI3wQXr7PKtwUBI1qJ2RqoIM,4036
|
|
52
52
|
bluer_options/list/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
53
|
bluer_options/list/__main__.py,sha256=er69iqdooU9Hb-7Vl6CAUMgQmZApSq_BTDnLT4xCjWI,3646
|
|
54
|
-
bluer_options/logger/__init__.py,sha256=
|
|
55
|
-
bluer_options/logger/config.py,sha256=
|
|
54
|
+
bluer_options/logger/__init__.py,sha256=2k9853tBtpTx00sBQwI_YTyacYpN6WK6obK4IWMvz7s,158
|
|
55
|
+
bluer_options/logger/config.py,sha256=fBsZb1sTLf_iVR_Cq7Xpiyka4cp0OV-Ps2GFrdz_g9U,3475
|
|
56
56
|
bluer_options/options/__init__.py,sha256=q0Ymi9oCBwgN0g7NVeYh4XgiICOtH8W8Wuaa52NH-rw,50
|
|
57
57
|
bluer_options/options/__main__.py,sha256=wnCzX2dxIgrjZ6qoDnE_YBE6xzJO5ME5u-gCPmb02cw,1479
|
|
58
58
|
bluer_options/options/classes.py,sha256=dcfGd34y6vDYvj-v-Bb5uOyy79mwV0s98czYFJ9hB9U,2211
|
|
@@ -63,8 +63,8 @@ bluer_options/string/functions.py,sha256=cvP4_b0CUk3xXWLTpqy17NOw8ldiiUx3GLpggap
|
|
|
63
63
|
bluer_options/terminal/__init__.py,sha256=kyNhbC5NVCuqrUhbbTeAOTW1ZO7MRRbi0RtXGBFKtJc,73
|
|
64
64
|
bluer_options/terminal/__main__.py,sha256=3o465bp44c2f1KHDn4j664hpbvu8wKOwQ2c1OPoa6Xc,902
|
|
65
65
|
bluer_options/terminal/functions.py,sha256=A23uHLeU4JIctmecOFk_KhIfOeHu-WMjnSzBj2KiF3U,1947
|
|
66
|
-
bluer_options-5.
|
|
67
|
-
bluer_options-5.
|
|
68
|
-
bluer_options-5.
|
|
69
|
-
bluer_options-5.
|
|
70
|
-
bluer_options-5.
|
|
66
|
+
bluer_options-5.164.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
67
|
+
bluer_options-5.164.1.dist-info/METADATA,sha256=2AVvCqM6ipI-5YWMgwMBuLaSsTmQaV-V9w8q4CFMytE,4951
|
|
68
|
+
bluer_options-5.164.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
69
|
+
bluer_options-5.164.1.dist-info/top_level.txt,sha256=yw9slt8n3R7IiYmf83OtHtB8Z-EgP9UwyQTk1EGiAJU,14
|
|
70
|
+
bluer_options-5.164.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|