atomicshop 2.18.16__py3-none-any.whl → 2.18.17__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.18.16'
4
+ __version__ = '2.18.17'
@@ -1,6 +1,8 @@
1
1
  import logging
2
2
  import socket
3
3
  import ssl
4
+ import time
5
+
4
6
  import select
5
7
  from pathlib import Path
6
8
 
@@ -120,9 +122,19 @@ class Receiver:
120
122
  # We'll skip the 'is_socket_ready_for_read' check on the first run, since we want to read the data anyway,
121
123
  # to leave the socket in the blocking mode.
122
124
  first_run: bool = True
125
+ no_data_first_cycle: bool = True
123
126
  while True:
124
127
  # Check if there is data to be read from the socket.
125
128
  is_there_data: bool = is_socket_ready_for_read(self.ssl_socket, timeout=0)
129
+
130
+ # If there is no data to be read from the socket, and it is the first cycle, wait for a bit and try again.
131
+ if no_data_first_cycle and not is_there_data:
132
+ no_data_first_cycle = False
133
+ sleep_time: float = 0.5
134
+ self.logger.info(f"First time socket not ready. Waiting {str(sleep_time)} seconds before trying last time.")
135
+ time.sleep(sleep_time)
136
+ continue
137
+
126
138
  # noinspection PyTypeChecker
127
139
  if is_there_data or first_run:
128
140
  first_run = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.18.16
3
+ Version: 2.18.17
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=IuIxKU_I3diwNIyJXcznjnX1iBeIXM6M3uCnXlhfTRQ,124
1
+ atomicshop/__init__.py,sha256=ivNsScemzv9LXI2vGUWebHrEcNi81OytLwrD-3BCUm4,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
@@ -309,7 +309,7 @@ atomicshop/wrappers/socketw/creator.py,sha256=aSwfN_IwXXf4Hob35vHXUxD_OPeshZcRDZ
309
309
  atomicshop/wrappers/socketw/dns_server.py,sha256=RklzINNuoMQn4PGGQEI5hiAldprbVwwvikY6u9X-jTY,49067
310
310
  atomicshop/wrappers/socketw/exception_wrapper.py,sha256=B-X5SHLSUIWToihH2MKnOB1F4A81_X0DpLLfnYKYbEc,7067
311
311
  atomicshop/wrappers/socketw/get_process.py,sha256=aJC-_qFUv3NgWCSUzDI72E4z8_-VTZE9NVZ0CwUoNlM,5698
312
- atomicshop/wrappers/socketw/receiver.py,sha256=LRQO-RIY0ZRjSMGVHLVJAXFTVO1zvjgIKSefEngPFfc,8186
312
+ atomicshop/wrappers/socketw/receiver.py,sha256=Fj5bP_A7frvXrRMNw4k-ArGenzxfWVysBJSEOZ8ohdY,8704
313
313
  atomicshop/wrappers/socketw/sender.py,sha256=aX_K8l_rHjd5AWb8bi5mt8-YTkMYVRDB6DnPqK_XDUE,4754
314
314
  atomicshop/wrappers/socketw/sni.py,sha256=T9PXROiTYYxrd_7X4Hoj9hoNPXXTQpa2HdvmBJJIoeA,17607
315
315
  atomicshop/wrappers/socketw/socket_client.py,sha256=oa3GwS4OPgokrJE5_Oc4-5_wlXHxSH9J5f2DKebms8k,22035
@@ -320,8 +320,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
320
320
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
321
321
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
322
322
  atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
323
- atomicshop-2.18.16.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
324
- atomicshop-2.18.16.dist-info/METADATA,sha256=p1cdNLaZYCYiSGZSoa9sZ1memPijaEHHRRfBCppKa2A,10577
325
- atomicshop-2.18.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
326
- atomicshop-2.18.16.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
327
- atomicshop-2.18.16.dist-info/RECORD,,
323
+ atomicshop-2.18.17.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
324
+ atomicshop-2.18.17.dist-info/METADATA,sha256=7FKQflXFEbWNBjy0Z9OwLWbgKASXvOKsPWf5a5o8L-Q,10577
325
+ atomicshop-2.18.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
326
+ atomicshop-2.18.17.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
327
+ atomicshop-2.18.17.dist-info/RECORD,,