easy-utils-dev 2.148__tar.gz → 2.150__tar.gz

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 easy-utils-dev might be problematic. Click here for more details.

Files changed (43) hide show
  1. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/PKG-INFO +1 -1
  2. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/debugger.py +29 -10
  3. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/utils.py +2 -2
  4. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev.egg-info/PKG-INFO +1 -1
  5. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/setup.py +1 -1
  6. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/MANIFEST.in +0 -0
  7. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/EasySsh.py +0 -0
  8. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/Events.py +0 -0
  9. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/FastQueue.py +0 -0
  10. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/NameObject.py +0 -0
  11. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/__init__.py +0 -0
  12. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/abortable.py +0 -0
  13. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/brevosmtp.py +0 -0
  14. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/check_license.py +0 -0
  15. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/cplib.py +0 -0
  16. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/custom_env.py +0 -0
  17. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/debugger-C-PF4PAMMP.py +0 -0
  18. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/easy_oracle.py +0 -0
  19. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/encryptor.py +0 -0
  20. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/ept.py +0 -0
  21. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/ept_sql/create_dirs.sql +0 -0
  22. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/ept_sql/create_ept_tables.sql +0 -0
  23. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/exceptions.py +0 -0
  24. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/filescompressor.py +0 -0
  25. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/generate_license.py +0 -0
  26. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/keycloakapi.py +0 -0
  27. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/lralib.py +0 -0
  28. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/ne1830PSS.py +0 -0
  29. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/nsp_kafka.py +0 -0
  30. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/openid_server.py +0 -0
  31. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/optics_utils.py +0 -0
  32. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/require_auth.py +0 -0
  33. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/simple_sqlite.py +0 -0
  34. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/temp_memory.py +0 -0
  35. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/uiserver.py +0 -0
  36. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/winserviceapi.py +0 -0
  37. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/wsnoclib.py +0 -0
  38. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev/wsselib.py +0 -0
  39. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev.egg-info/SOURCES.txt +0 -0
  40. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev.egg-info/dependency_links.txt +0 -0
  41. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev.egg-info/requires.txt +0 -0
  42. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/easy_utils_dev.egg-info/top_level.txt +0 -0
  43. {easy_utils_dev-2.148 → easy_utils_dev-2.150}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easy_utils_dev
3
- Version: 2.148
3
+ Version: 2.150
4
4
  Keywords: python3
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Dist: psutil
@@ -118,6 +118,21 @@ class DEBUGGER:
118
118
  self.set_level(EASY_UTILS_DEBUG_LEVEL)
119
119
  if os.environ.get("EASY_UTILS_ENABLE_PRINT" , '' ).lower() == 'true' :
120
120
  self.enable_print()
121
+ start_thread(target=self.checks_in_bg)
122
+
123
+
124
+ def fix_file_not_found_file_rotation(self) :
125
+ for i in range(self.BACKUP_COUNT) :
126
+ try :
127
+ file_path = self.homePath + f'.{i}'
128
+ # print(f"Checking log file path : {file_path}")
129
+ if not os.path.exists(file_path) :
130
+ with open(file_path, 'a+') as f :
131
+ print(f"Creating log file path : {file_path}")
132
+ f.write('')
133
+ except :
134
+ pass
135
+
121
136
 
122
137
  def switch_full_syntax(self , toggle) :
123
138
  if toggle :
@@ -237,6 +252,7 @@ class DEBUGGER:
237
252
 
238
253
  def checks_in_bg(self) :
239
254
  while True :
255
+ self.fix_file_not_found_file_rotation()
240
256
  if self.env.get('GLOBAL_DEBUGGER_STREAM_SERVICE') :
241
257
  self.addStreamService(socketio=self.env.get('GLOBAL_DEBUGGER_STREAM_SERVICE'))
242
258
  if self.env.get('debugger_global_level' , None) :
@@ -349,16 +365,19 @@ class DEBUGGER:
349
365
  if self.isStreamServiceAvailable() :
350
366
  d = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
351
367
  streamUrl = self.getStreamServiceUrlPath()
352
- self.stream_service.emit( streamUrl , {
353
- 'message' : message ,
354
- 'level' : level ,
355
- 'msg' : message,
356
- 'date' : d ,
357
- 'id' : self.id,
358
- 'formate' : 'json' ,
359
- 'source' : self.name ,
360
- 'getTimestamp' : getTimestamp()
361
- })
368
+ try :
369
+ self.stream_service.emit( streamUrl , {
370
+ 'message' : message ,
371
+ 'level' : level ,
372
+ 'msg' : message,
373
+ 'date' : d ,
374
+ 'id' : self.id,
375
+ 'formate' : 'json' ,
376
+ 'source' : self.name ,
377
+ 'getTimestamp' : getTimestamp()
378
+ })
379
+ except :
380
+ pass
362
381
  try :
363
382
  t= Thread(target=__call_thread__)
364
383
  # t.daemon=True
@@ -49,14 +49,14 @@ def timenow() :
49
49
  return str(now().strftime("%d/%m/%Y %H:%M:%S"))
50
50
 
51
51
 
52
- def timenowForLabels() :
52
+ def timenowForLabels(format='%d-%m-%Y_%H-%M-%S') :
53
53
  """
54
54
  Get current date and time formatted for use in file labels.
55
55
 
56
56
  Returns:
57
57
  str: Current date and time in format "DD-MM-YYYY_HH-MM-SS".
58
58
  """
59
- return now().strftime("%d-%m-%Y_%H-%M-%S")
59
+ return now().strftime(format)
60
60
 
61
61
  def fixTupleForSql(list):
62
62
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easy_utils_dev
3
- Version: 2.148
3
+ Version: 2.150
4
4
  Keywords: python3
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Dist: psutil
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- VERSION = '2.148'
3
+ VERSION = '2.150'
4
4
 
5
5
  # Setting up
6
6
  setup(
File without changes