atomicshop 3.3.15__py3-none-any.whl → 3.3.16__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__ = '3.3.15'
4
+ __version__ = '3.3.16'
atomicshop/ssh_remote.py CHANGED
@@ -129,32 +129,9 @@ class SSHRemote:
129
129
  # with description of
130
130
  # Server 'address_goes_here' not found in known_hosts
131
131
  self.ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
132
- try:
133
- # Executing SSH connection to client.
134
- self.ssh_client.connect(self.ip_address, username=self.username, password=self.password, timeout=60)
135
- # When port 22 is unreachable on the client.
136
- except paramiko.ssh_exception.NoValidConnectionsError as e:
137
- error = str(e)
138
- # Logging the error also. Since the process name isn't critical, we'll continue script execution.
139
- print_api(error, logger=self.logger, logger_method='error', traceback_string=True)
140
- pass
141
- except paramiko.ssh_exception.SSHException as e:
142
- error = str(e)
143
- # Logging the error also. Since the process name isn't critical, we'll continue script execution.
144
- print_api(error, logger=self.logger, logger_method='error', traceback_string=True)
145
- pass
146
- except ConnectionResetError:
147
- # Returning the error.
148
- error = "An existing connection was forcibly closed by the remote host."
149
- # Logging the error also. Since the process name isn't critical, we'll continue script execution.
150
- print_api(error, logger=self.logger, logger_method='error', traceback_string=True)
151
- pass
152
- except TimeoutError:
153
- # Returning the error.
154
- error = "Connection timed out."
155
- # Logging the error also. Since the process name isn't critical, we'll continue script execution.
156
- print_api(error, logger=self.logger, logger_method='error', traceback_string=True)
157
- pass
132
+
133
+ # Executing SSH connection to client.
134
+ self.ssh_client.connect(self.ip_address, username=self.username, password=self.password, timeout=60)
158
135
 
159
136
  return error
160
137
 
@@ -14,7 +14,7 @@ DEFAULT_ROTATING_SUFFIXES_FROM_WHEN: dict = {
14
14
  }
15
15
 
16
16
 
17
- DEFAULT_STREAM_FORMATTER: str = "%(levelname)s | %(threadName)s | %(name)s | %(message)s"
17
+ DEFAULT_STREAM_FORMATTER: str = "%(asctime)s | %(levelname)s | %(threadName)s | %(name)s | %(message)s"
18
18
  DEFAULT_MESSAGE_FORMATTER: str = "%(message)s"
19
19
 
20
20
  FORMAT_ELEMENT_TO_HEADER: dict = {
@@ -2,7 +2,7 @@ import logging
2
2
  import os
3
3
  from logging import Logger
4
4
  from logging.handlers import QueueListener
5
- from typing import Literal, Union
5
+ from typing import Literal, Union, Callable
6
6
  import datetime
7
7
  import contextlib
8
8
  import threading
@@ -54,7 +54,7 @@ def create_logger(
54
54
  formatter_filehandler_use_nanoseconds: bool = True,
55
55
  filehandler_rotate_at_rollover_time: bool = True,
56
56
  filehandler_rotation_date_format: str = None,
57
- filehandler_rotation_callback_namer_function: callable = None,
57
+ filehandler_rotation_callback_namer_function: Callable = None,
58
58
  filehandler_rotation_use_default_namer_function: bool = True,
59
59
  when: str = "midnight",
60
60
  interval: int = 1,
@@ -646,7 +646,7 @@ def start_queue_listener_in_multiprocessing(
646
646
  formatter_filehandler_use_nanoseconds: bool = True,
647
647
  filehandler_rotate_at_rollover_time: bool = True,
648
648
  filehandler_rotation_date_format: str = None,
649
- filehandler_rotation_callback_namer_function: callable = None,
649
+ filehandler_rotation_callback_namer_function: Callable = None,
650
650
  filehandler_rotation_use_default_namer_function: bool = True,
651
651
  when: str = "midnight",
652
652
  interval: int = 1,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomicshop
3
- Version: 3.3.15
3
+ Version: 3.3.16
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License-Expression: MIT
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=6WgqHKNGGFHXE26Xw2aXZupzRTfmkTbM2lmvzAjmQcc,123
1
+ atomicshop/__init__.py,sha256=kyelTQilS2JfdchICQN4bok9iSdZmHH9FoIHAGcgZ-w,123
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
@@ -37,7 +37,7 @@ atomicshop/scheduling.py,sha256=MvF20M6uU0Kh_CQn2ERxMTLvvF-ToBrdMhXNrKxYFj8,4682
37
37
  atomicshop/script_as_string_processor.py,sha256=uAIWwhHE-eP2FniuwBqEiM6VzyQX96uwdE3aA31rIm8,1883
38
38
  atomicshop/sound.py,sha256=tHiQQbFBk7EYN3pAfGNcxfF9oNsoYnZgu9z9iq8hxQE,24352
39
39
  atomicshop/speech_recognize.py,sha256=55-dIjgkpF93mvJnJuxSFuft5H5eRvGNlUj9BeIOZxk,5903
40
- atomicshop/ssh_remote.py,sha256=Mxixqs2-xGy1bhbcP0LKqjxKTNPz1Gmzz8PzO8aLB4c,17345
40
+ atomicshop/ssh_remote.py,sha256=-Xr8VMRJ2WpxdEG8HT2kFKKsb9GhSVVOJvUm948h1PE,15917
41
41
  atomicshop/sys_functions.py,sha256=MTBxRve5bh58SPvhX3gMiGqHlSBuI_rdNN1NnnBBWqI,906
42
42
  atomicshop/system_resource_monitor.py,sha256=yHdBU4mAVqoVS0Nn_SM_H42i4PgsgXDaXaMxfnL5CgA,14588
43
43
  atomicshop/system_resources.py,sha256=iKUvVSaXR47inmr3cTYsgNfclT38dRia2oupnlhIpK4,9290
@@ -252,12 +252,12 @@ atomicshop/wrappers/factw/rest/firmware.py,sha256=FezneouU1lUO9uZ6_8ZQNxr4MDlFIo
252
252
  atomicshop/wrappers/factw/rest/router.py,sha256=fdGok5ESBxcZHIBgM93l4yTPRGoeooQNsrPWIETieGk,710
253
253
  atomicshop/wrappers/factw/rest/statistics.py,sha256=vznwzKP1gEF7uXz3HsuV66BU9wrp73N_eFqpFpye9Qw,653
254
254
  atomicshop/wrappers/factw/rest/status.py,sha256=4O3xS1poafwyUiLDkhyx4oMMe4PBwABuRPpOMnMKgIU,641
255
- atomicshop/wrappers/loggingw/consts.py,sha256=JWiUJEydjhwatBxtIJsGTmDUSTLbmIRidtR6qRLMaIY,1608
255
+ atomicshop/wrappers/loggingw/consts.py,sha256=SK-DhONhwSeSJg5wbLAMGFTH6EDyh4_kyAeTrLedWwE,1622
256
256
  atomicshop/wrappers/loggingw/filters.py,sha256=48UVhJHemCS0agXmQP8dHvAHM8r9DFphJ1TNEBP3Dlg,3545
257
257
  atomicshop/wrappers/loggingw/formatters.py,sha256=ZY12IokVY1G_Wzn2Zlv9qjK-e8CtIK6yUgUfPHvH2BU,5802
258
258
  atomicshop/wrappers/loggingw/handlers.py,sha256=9JoleL96N85e6lEtD92YmKMwupHHON_YbV2ajeOBJ-8,21965
259
259
  atomicshop/wrappers/loggingw/loggers.py,sha256=mmM__XR3W4QC82wbsDRG_M4_0JYGGEP0Qn0WCOSp-go,2910
260
- atomicshop/wrappers/loggingw/loggingw.py,sha256=Cp_9IsiloPYpp9uzEQtUX-jCfcgGe4B2nFBle8x4wqQ,43582
260
+ atomicshop/wrappers/loggingw/loggingw.py,sha256=na7JhWyYIhCcvqDp1omiY2o23RMYN22JsWzFr9fOo6Y,43592
261
261
  atomicshop/wrappers/loggingw/reading.py,sha256=3uM7xc4Q_CBDkWgu6YGv_n5-9cCGrYXEd7qhc_Zk2EI,18068
262
262
  atomicshop/wrappers/mongodbw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
263
263
  atomicshop/wrappers/mongodbw/mongo_infra.py,sha256=vEXKy1Mi6LZ7QNEtRb8d-5xT5PYFhXbeEfFsXfsgpYo,918
@@ -316,8 +316,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=_gA8bMX6Sw_UCXKi2y9wNAwlqif
316
316
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
317
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
318
318
  atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
319
- atomicshop-3.3.15.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
320
- atomicshop-3.3.15.dist-info/METADATA,sha256=Mcn63amszsRHA31Jh2PiUb2TH3jwolN_trPIqZUGwr8,9345
321
- atomicshop-3.3.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
322
- atomicshop-3.3.15.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
323
- atomicshop-3.3.15.dist-info/RECORD,,
319
+ atomicshop-3.3.16.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
320
+ atomicshop-3.3.16.dist-info/METADATA,sha256=t1-CnwQ6Go6D2SMdoVOws7Cs_Kc_gcurJKt8KOCHJhE,9345
321
+ atomicshop-3.3.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
322
+ atomicshop-3.3.16.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
323
+ atomicshop-3.3.16.dist-info/RECORD,,