atomicshop 2.16.32__py3-none-any.whl → 2.16.33__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.16.32'
4
+ __version__ = '2.16.33'
@@ -347,11 +347,15 @@ def find_deviation_from_moving_average(
347
347
 
348
348
  deviation_type = None
349
349
  deviation_percentage = None
350
+ error_message: str = str()
350
351
  if day_statistics_content_dict[check_type] > check_type_moving_above:
351
352
  deviation_type = 'above'
352
- deviation_percentage = (
353
- (day_statistics_content_dict[check_type] - host_moving_average_by_type) /
354
- host_moving_average_by_type)
353
+ try:
354
+ deviation_percentage = (
355
+ (day_statistics_content_dict[check_type] - host_moving_average_by_type) /
356
+ host_moving_average_by_type)
357
+ except ZeroDivisionError as e:
358
+ error_message = f' | Error: Division by 0, host_moving_average_by_type: {host_moving_average_by_type}'
355
359
  elif day_statistics_content_dict[check_type] < check_type_moving_below:
356
360
  deviation_type = 'below'
357
361
  deviation_percentage = (
@@ -359,7 +363,7 @@ def find_deviation_from_moving_average(
359
363
  host_moving_average_by_type)
360
364
 
361
365
  if deviation_type:
362
- message = f'[{check_type}] is [{deviation_type}] the moving average.'
366
+ message = f'[{check_type}] is [{deviation_type}] the moving average.' + error_message
363
367
 
364
368
  # The median and the total count are None for the count, Since they are the count.
365
369
  if 'count' in check_type:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.16.32
3
+ Version: 2.16.33
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=CTcwR9Fze6eeaSRpctGxH5Awdz0-la2J3f5qJFeP0jA,124
1
+ atomicshop/__init__.py,sha256=Q8UxOCNLGPrZ4zmxZygiIYY6-S1LBodk2crxUcbd0aQ,124
2
2
  atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
3
3
  atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
4
4
  atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
@@ -145,7 +145,7 @@ atomicshop/mitm/engines/__reference_general/recorder___reference_general.py,sha2
145
145
  atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=IUyQYMPeEhIARfALWiKPFeXagSQD6lRzAxUdi4ZIT88,7010
146
146
  atomicshop/mitm/statistic_analyzer_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
147
147
  atomicshop/mitm/statistic_analyzer_helper/analyzer_helper.py,sha256=pk6L1t1ea1kvlBoR9QEJptOmaX-mumhwLsP2GCKukbk,5920
148
- atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=Fw-1lH1NOTinMsJnCbCgMHfdoH5Vav388puKm3DmdEs,19746
148
+ atomicshop/mitm/statistic_analyzer_helper/moving_average_helper.py,sha256=UnnY_FSTiXEfZ8SkDKU2s2qpgPYu1oOT99ghmY-zzas,19992
149
149
  atomicshop/monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
150
150
  atomicshop/monitor/change_monitor.py,sha256=K5NlVp99XIDDPnQQMdru4BDmua_DtcDIhVAzkTOvD5s,7673
151
151
  atomicshop/monitor/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -310,8 +310,8 @@ atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0L
310
310
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=w1AH-zf4mBuT4euf28UKij9ihM-b1BRU9Qfby0QDdqI,2957
311
311
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
312
312
  atomicshop/wrappers/winregw/winreg_network.py,sha256=bQ8Jql8bVGBJ0dt3VQ56lga_1LBOMLI3Km_otvvbU6c,7138
313
- atomicshop-2.16.32.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
314
- atomicshop-2.16.32.dist-info/METADATA,sha256=9y8KcvM3GJNgsSJQ2aDxHl6YGVSkAV6KWlkAO3t9HTQ,10473
315
- atomicshop-2.16.32.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
316
- atomicshop-2.16.32.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
317
- atomicshop-2.16.32.dist-info/RECORD,,
313
+ atomicshop-2.16.33.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
314
+ atomicshop-2.16.33.dist-info/METADATA,sha256=snw-nClHcOxtJnor7m7ldSl-0Lu3-R5jfEZ9l53m3WU,10473
315
+ atomicshop-2.16.33.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
316
+ atomicshop-2.16.33.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
317
+ atomicshop-2.16.33.dist-info/RECORD,,