easy-utils-dev 2.146__py3-none-any.whl → 2.148__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.
@@ -1,7 +1,5 @@
1
- import copy
2
1
  import gc
3
2
  import time
4
- from tkinter import NO
5
3
  from werkzeug.serving import ThreadedWSGIServer
6
4
  from easy_utils_dev.utils import getRandomKey , generateToken , getTimestamp
7
5
  from flask_socketio import SocketIO
@@ -1,4 +1,3 @@
1
- from tkinter import NO
2
1
  from easy_utils_dev.debugger import DEBUGGER
3
2
  import requests , json , subprocess
4
3
  from requests.auth import HTTPBasicAuth as BAuth
@@ -87,6 +86,7 @@ class WSNOCLIB :
87
86
  self.current_requests = 0
88
87
  self.connected = False
89
88
  self.pm_hadoop = PmHadoopClient(self)
89
+ self.verify_connection_by_ping = True
90
90
  if register_atexit :
91
91
  atexit.register(self.goodbye)
92
92
 
@@ -130,8 +130,9 @@ class WSNOCLIB :
130
130
  self.logger.debug(f"loggedOut flag is {self.loggedOut}")
131
131
  if self.loggedOut :
132
132
  return
133
- if not pingAddress(self.address) :
134
- raise Exception(f'Address {self.address} is not pingable.')
133
+ if self.verify_connection_by_ping :
134
+ if not pingAddress(self.address) :
135
+ raise Exception(f'Address {self.address} is not pingable.')
135
136
  # self.logger.info(f'Connecting to {self.address} using username: {self.username}')
136
137
  self.logger.debug(f'Connecting to {self.address} using username: {self.username}')
137
138
  URL = f"https://{self.address}/rest-gateway/rest/api/v1/auth/token"
@@ -379,7 +380,7 @@ class WSNOCLIB :
379
380
  return self.kafka
380
381
 
381
382
  def change_kafka_refresh_period(self , period : int =3000) :
382
- self.logger.warning('Deprecated, Kafka refresh period is now managed by WSNOC API SLEEP PERIOD. Nothing is applied now.')
383
+ self.logger.warning('Deprecated, Kafka refresh period is now managed by WSNOC API SLEEP PERIOD. Nothing is applied from this function.')
383
384
 
384
385
  def renewSubscription(self) :
385
386
  self.logger.info('Renewing subscription ...')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easy_utils_dev
3
- Version: 2.146
3
+ Version: 2.148
4
4
  Keywords: python3
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Dist: psutil
@@ -16,7 +16,6 @@ Requires-Dist: flask_socketio
16
16
  Requires-Dist: python-dotenv
17
17
  Requires-Dist: gevent
18
18
  Requires-Dist: pyzipper
19
- Requires-Dist: shutil
20
19
  Requires-Dist: pyjwt
21
20
  Requires-Dist: authlib
22
21
  Requires-Dist: kafka-python
@@ -25,14 +25,14 @@ easy_utils_dev/optics_utils.py,sha256=G-hFX2iiUCSJjk7BICBRGvVoDq0IBONLZSjagoB5FM
25
25
  easy_utils_dev/require_auth.py,sha256=UsYAxfLX5wda6hd0nfLR_tl0bGQ4DYIpaTowsYSku-E,881
26
26
  easy_utils_dev/simple_sqlite.py,sha256=J-mcTUnHmAn0eCPD8j-WEoA19uzHRXJ4YRJsyx9B-do,13113
27
27
  easy_utils_dev/temp_memory.py,sha256=AGPh7tIi7S5LofzVnKJzsF8xDjappUMaD-ZnUNJAn7w,1638
28
- easy_utils_dev/uiserver.py,sha256=VdYBl7He5nkc3WAEpimQwDPicmtZ9Pf6E5UGnS2-gJg,15017
28
+ easy_utils_dev/uiserver.py,sha256=lOGhfpdHoLBzd9RWkHX7P9khNU_kxdtzZU6ah_epzcw,14980
29
29
  easy_utils_dev/utils.py,sha256=4K-Q806kOemdWCtEauCUCWdXhORyWr0EOy0B5mU6qeE,14081
30
30
  easy_utils_dev/winserviceapi.py,sha256=2ZP6jaSt1-5vEJYXqwBhwX-1-eQ3V3YzntsoOoko2cw,18804
31
- easy_utils_dev/wsnoclib.py,sha256=HYmU2q21mVugx_V5puC10mrjCtkPl-2d9d5-5LpyEC4,38150
31
+ easy_utils_dev/wsnoclib.py,sha256=xCUixNvN9nuGFYO5KT3S5VB6zm8QtzghAR06YlKqfOs,38242
32
32
  easy_utils_dev/wsselib.py,sha256=YweScnoAAH_t29EeIjBpkQ6HtX0Rp9mQudRsRce2SE8,7920
33
33
  easy_utils_dev/ept_sql/create_dirs.sql,sha256=KWfX-Nc6lvr_BC-P6O97NE0idoPW4GNKUKUCgonJhto,3508
34
34
  easy_utils_dev/ept_sql/create_ept_tables.sql,sha256=WDHyIyeReV8_QaYBPIpSy-lto3OKvZtex1tWs-FPURQ,67737
35
- easy_utils_dev-2.146.dist-info/METADATA,sha256=JSI77WFB7X7wdSL3bg3yC9n9mQ0FmLVRAJtALm5aSbE,625
36
- easy_utils_dev-2.146.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
- easy_utils_dev-2.146.dist-info/top_level.txt,sha256=7vBsrpq7NmilkdU3YUvfd5iVDNBaT07u_-ut4F7zc7A,15
38
- easy_utils_dev-2.146.dist-info/RECORD,,
35
+ easy_utils_dev-2.148.dist-info/METADATA,sha256=LJvIsaikQUL8mfsMu7G6UWD9a7c57eJMmstkzD9GXYQ,602
36
+ easy_utils_dev-2.148.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ easy_utils_dev-2.148.dist-info/top_level.txt,sha256=7vBsrpq7NmilkdU3YUvfd5iVDNBaT07u_-ut4F7zc7A,15
38
+ easy_utils_dev-2.148.dist-info/RECORD,,