atomicshop 3.3.25__py3-none-any.whl → 3.3.26__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.25'
4
+ __version__ = '3.3.26'
@@ -553,6 +553,13 @@ class SocketWrapper:
553
553
  source_ip: str = client_address[0]
554
554
  dest_port: int = listening_socket_object.getsockname()[1]
555
555
 
556
+ # Not always there will be a hostname resolved by the IP address, so we will leave it empty if it fails.
557
+ try:
558
+ source_hostname = socket.gethostbyaddr(source_ip)[0]
559
+ source_hostname = source_hostname.lower()
560
+ except socket.herror:
561
+ pass
562
+
556
563
  # This is the earliest stage to ask for process name.
557
564
  # SSH Remote / LOCALHOST script execution to identify process section.
558
565
  # If 'get_process_name' was set to True, then this will be executed.
@@ -566,12 +573,6 @@ class SocketWrapper:
566
573
  logger=self.logger)
567
574
  process_name = get_command_instance.get_process_name(print_kwargs={'logger': self.logger})
568
575
 
569
- # Not always there will be a hostname resolved by the IP address, so we will leave it empty if it fails.
570
- try:
571
- source_hostname = socket.gethostbyaddr(source_ip)[0]
572
- except socket.herror:
573
- pass
574
-
575
576
  # If 'accept()' function worked well, SSL worked well, then 'client_socket' won't be empty.
576
577
  if client_socket:
577
578
  # Get the protocol type from the socket.
@@ -706,7 +707,7 @@ class SocketWrapper:
706
707
  except Exception as e:
707
708
  _ = e
708
709
  exception_string: str = tracebacks.get_as_string()
709
- full_string: str = f"Engine: {engine_name} | {exception_string}"
710
+ full_string: str = f"Engine: [{engine_name}] | {exception_string}"
710
711
  self.exceptions_logger.write(full_string)
711
712
 
712
713
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomicshop
3
- Version: 3.3.25
3
+ Version: 3.3.26
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=peqNB9IL7p86gZd32BF4w1uBeAZvZo0dOfoMRX3xB5U,123
1
+ atomicshop/__init__.py,sha256=4EgJYd49JARUMQEP9YUXR0MGaFjopGdy25l3D73gEiM,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
@@ -308,14 +308,14 @@ atomicshop/wrappers/socketw/sender.py,sha256=aX_K8l_rHjd5AWb8bi5mt8-YTkMYVRDB6Dn
308
308
  atomicshop/wrappers/socketw/sni.py,sha256=uj6KKYKmSrzXcKBhVLaHQhYn1wNfIUpdnmcvn21V9iE,18176
309
309
  atomicshop/wrappers/socketw/socket_client.py,sha256=WWIiCxUX9irN9aWzJ6-1xrXNB_iv_diq3ha1yrWsNGU,22671
310
310
  atomicshop/wrappers/socketw/socket_server_tester.py,sha256=Qobmh4XV8ZxLUaw-eW4ESKAbeSLecCKn2OWFzMhadk0,6420
311
- atomicshop/wrappers/socketw/socket_wrapper.py,sha256=bSFRfmzlfOsqb0jBLGsdCxDkZl6L0Si5QJZkShjOxEM,42589
311
+ atomicshop/wrappers/socketw/socket_wrapper.py,sha256=GZyDzuc9Snm3qthl9gkGB9_Yb4p_Egp0sMtaivQ2xuo,42654
312
312
  atomicshop/wrappers/socketw/ssl_base.py,sha256=62-hPm7zla1rh3m_WvDnXqKH-sDUTdiRptD8STCkgdk,2313
313
313
  atomicshop/wrappers/socketw/statistics_csv.py,sha256=_gA8bMX6Sw_UCXKi2y9wNAwlqifgExgDGfQIa9pFxQA,5543
314
314
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
315
315
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
316
316
  atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
317
- atomicshop-3.3.25.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
318
- atomicshop-3.3.25.dist-info/METADATA,sha256=VAymfm9H0qFDtFWy28IxXTtb6CGaePBQVC4QkN7nGv8,9318
319
- atomicshop-3.3.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
320
- atomicshop-3.3.25.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
321
- atomicshop-3.3.25.dist-info/RECORD,,
317
+ atomicshop-3.3.26.dist-info/licenses/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
318
+ atomicshop-3.3.26.dist-info/METADATA,sha256=IvU66yRmy4iNKUf6PLOdThdn4s6XZ7qEHfWO5sH5FE8,9318
319
+ atomicshop-3.3.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
320
+ atomicshop-3.3.26.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
321
+ atomicshop-3.3.26.dist-info/RECORD,,