atomicshop 2.3.10__py3-none-any.whl → 2.3.11__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/print_api.py +13 -10
- {atomicshop-2.3.10.dist-info → atomicshop-2.3.11.dist-info}/METADATA +1 -1
- {atomicshop-2.3.10.dist-info → atomicshop-2.3.11.dist-info}/RECORD +7 -7
- {atomicshop-2.3.10.dist-info → atomicshop-2.3.11.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.3.10.dist-info → atomicshop-2.3.11.dist-info}/WHEEL +0 -0
- {atomicshop-2.3.10.dist-info → atomicshop-2.3.11.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/print_api.py
CHANGED
|
@@ -209,7 +209,12 @@ def print_status(
|
|
|
209
209
|
|
|
210
210
|
|
|
211
211
|
def print_status_of_list(
|
|
212
|
-
list_instance: list,
|
|
212
|
+
list_instance: list,
|
|
213
|
+
prefix_string: str,
|
|
214
|
+
current_state,
|
|
215
|
+
suffix_string: str = str(),
|
|
216
|
+
same_line: bool = True,
|
|
217
|
+
**kwargs):
|
|
213
218
|
"""
|
|
214
219
|
The function will print specified variables in a specific format on the same line, based on 'same_line' parameter.
|
|
215
220
|
|
|
@@ -219,6 +224,8 @@ def print_status_of_list(
|
|
|
219
224
|
:param current_state: numeric representation of current state.
|
|
220
225
|
:param suffix_string: string, since the lines are printed on the same line, it can happen that one line can be
|
|
221
226
|
longer than the other. If shorter line come after the longer one, it will align on top of the longer line.
|
|
227
|
+
:param same_line: Boolean, if True, the lines will be printed on the same line (but not the last line),
|
|
228
|
+
otherwise on different lines.
|
|
222
229
|
|
|
223
230
|
For example check the 'print_status' function.
|
|
224
231
|
|
|
@@ -228,15 +235,11 @@ def print_status_of_list(
|
|
|
228
235
|
|
|
229
236
|
final_state = len(list_instance)
|
|
230
237
|
|
|
231
|
-
if
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
if current_state != final_state:
|
|
237
|
-
same_line = True
|
|
238
|
-
else:
|
|
239
|
-
same_line = False
|
|
238
|
+
if same_line:
|
|
239
|
+
if current_state != final_state:
|
|
240
|
+
same_line = True
|
|
241
|
+
else:
|
|
242
|
+
same_line = False
|
|
240
243
|
|
|
241
244
|
print_status(prefix_string=prefix_string, current_state=current_state, final_state=final_state,
|
|
242
245
|
suffix_string=suffix_string, same_line=same_line, **kwargs)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=RXJOc2XvRYb29W-vu4kK-A5DOmU0yyRQPxnJEQOvkKI,123
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/appointment_management.py,sha256=N3wVGJgrqJfsj_lqiRfaL3FxMEe57by5Stzanh189mk,7263
|
|
4
4
|
atomicshop/archiver.py,sha256=E4dgAuh6ARtAWRW6Q0RdnMRMzsE_S1NjMiajHRIVG9s,5537
|
|
@@ -21,7 +21,7 @@ atomicshop/ip_addresses.py,sha256=fvBwLFGbcNV87s_UzZZs0MO-TPwDEak_0SB4_syhefM,69
|
|
|
21
21
|
atomicshop/keyboard_press.py,sha256=1W5kRtOB75fulVx-uF2yarBhW0_IzdI1k73AnvXstk0,452
|
|
22
22
|
atomicshop/pbtkmultifile_argparse.py,sha256=aEk8nhvoQVu-xyfZosK3ma17CwIgOjzO1erXXdjwtS4,4574
|
|
23
23
|
atomicshop/permissions.py,sha256=CYTDVOI0jh9ks0ZLnnOuPzppgCszFEc9-92DTkVTYi4,522
|
|
24
|
-
atomicshop/print_api.py,sha256=
|
|
24
|
+
atomicshop/print_api.py,sha256=3n1CoiXvDcDGg00n5gEmQYInHryIhWbcpNjVobO1Gao,11468
|
|
25
25
|
atomicshop/process.py,sha256=Jn0CQRGt962hhq6CHz2LCtA0Jf3o13r-l5mHTcLvGFg,7064
|
|
26
26
|
atomicshop/process_name_cmd.py,sha256=TNAK6kQZm5JKWzEW6QLqVHEG98ZLNDQiSS4YwDk8V8c,3830
|
|
27
27
|
atomicshop/process_poller.py,sha256=t79SwTX_4scH2WIH_ziw27aodG1ibhEFWbsVsmTyOVA,10846
|
|
@@ -165,8 +165,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=VfNthyBvgI5tL9v3Qprh4
|
|
|
165
165
|
atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
|
|
166
166
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
|
|
167
167
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
|
|
168
|
-
atomicshop-2.3.
|
|
169
|
-
atomicshop-2.3.
|
|
170
|
-
atomicshop-2.3.
|
|
171
|
-
atomicshop-2.3.
|
|
172
|
-
atomicshop-2.3.
|
|
168
|
+
atomicshop-2.3.11.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
169
|
+
atomicshop-2.3.11.dist-info/METADATA,sha256=6ClmBaVnRAzJ9eeRfZOF2wj0VUbrVx4QqGCs6eoIJHA,9586
|
|
170
|
+
atomicshop-2.3.11.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
171
|
+
atomicshop-2.3.11.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
172
|
+
atomicshop-2.3.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|