PKDevTools 0.13.20250208.219__tar.gz → 0.13.20250208.220__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/DBManager.py +15 -2
- pkdevtools-0.13.20250208.220/PKDevTools/classes/__init__.py +1 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/PKG-INFO +2 -2
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKG-INFO +2 -2
- pkdevtools-0.13.20250208.219/PKDevTools/classes/__init__.py +0 -1
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/LICENSE +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/LICENSE.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/README.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/__init__.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Archiver.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/ColorText.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Committer.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/CookieHelper.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Environment.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Fetcher.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/FunctionTimeouts.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/GmailReader.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/MarketHours.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/MenuOptions.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/NSEMarketStatus.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/OutputControls.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKDateUtilities.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKGitFolderDownloader.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKJoinableQueue.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKMultiProcessorClient.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKPickler.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKTimer.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Pikey.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Singleton.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/SuppressOutput.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/System.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Telegram.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/UserSubscriptions.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Utils.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/WorkflowManager.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/githubutilities.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/log.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/multiprocessing_logging.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/squash.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/updater.py +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/release.md +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/requirements.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/SOURCES.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/dependency_links.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/entry_points.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/not-zip-safe +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/requires.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/top_level.txt +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/README.md +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/setup.cfg +0 -0
- {pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/setup.py +0 -0
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/DBManager.py
RENAMED
@@ -413,6 +413,7 @@ class DBManager:
|
|
413
413
|
|
414
414
|
def updateAlertSubscriptionModel(self,userID,charge:float,scanId:str):
|
415
415
|
try:
|
416
|
+
success = False
|
416
417
|
result = self.connection().execute("""
|
417
418
|
UPDATE alertsubscriptions
|
418
419
|
SET
|
@@ -422,7 +423,7 @@ class DBManager:
|
|
422
423
|
""", (charge, scanId, userID))
|
423
424
|
if result.rows_affected > 0:
|
424
425
|
default_logger().debug(f"User: {userID} updated with balance and scannerJobs!")
|
425
|
-
self.topUpScannerJobs(scanId,userID)
|
426
|
+
success = self.topUpScannerJobs(scanId,userID)
|
426
427
|
except Exception as e: # pragma: no cover
|
427
428
|
print(f"Could not updateAlertSubscriptionModel UserID: {userID}\n{e}")
|
428
429
|
default_logger().debug(e, exc_info=True)
|
@@ -431,6 +432,7 @@ class DBManager:
|
|
431
432
|
if self.conn is not None:
|
432
433
|
self.conn.close()
|
433
434
|
self.conn = None
|
435
|
+
return success
|
434
436
|
|
435
437
|
def topUpAlertSubscriptionBalance(self,userID,topup:float):
|
436
438
|
"""
|
@@ -441,6 +443,7 @@ class DBManager:
|
|
441
443
|
(Balance + excluded.Balance).
|
442
444
|
"""
|
443
445
|
try:
|
446
|
+
success = False
|
444
447
|
result = self.connection().execute("""
|
445
448
|
INSERT INTO alertsubscriptions (userId, balance)
|
446
449
|
VALUES (?, ?)
|
@@ -449,6 +452,7 @@ class DBManager:
|
|
449
452
|
""", (userID,topup))
|
450
453
|
if result.rows_affected > 0:
|
451
454
|
default_logger().debug(f"User: {userID} topped up with balance !")
|
455
|
+
success = True
|
452
456
|
except Exception as e: # pragma: no cover
|
453
457
|
print(f"Could not topUpAlertSubscriptionBalance UserID: {userID}\n{e}")
|
454
458
|
default_logger().debug(e, exc_info=True)
|
@@ -457,6 +461,7 @@ class DBManager:
|
|
457
461
|
if self.conn is not None:
|
458
462
|
self.conn.close()
|
459
463
|
self.conn = None
|
464
|
+
return success
|
460
465
|
|
461
466
|
def topUpScannerJobs(self,scanId,userID):
|
462
467
|
"""
|
@@ -466,6 +471,7 @@ class DBManager:
|
|
466
471
|
If scanId already exists, only the users is updated by adding the new userId
|
467
472
|
"""
|
468
473
|
try:
|
474
|
+
success = False
|
469
475
|
result = self.connection().execute("""
|
470
476
|
INSERT INTO scannerjobs (scannerId, users)
|
471
477
|
VALUES (?, ?)
|
@@ -474,6 +480,7 @@ class DBManager:
|
|
474
480
|
""", (scanId,userID))
|
475
481
|
if result.rows_affected > 0:
|
476
482
|
default_logger().debug(f"User: {userID} added to scanId !")
|
483
|
+
success = True
|
477
484
|
except Exception as e: # pragma: no cover
|
478
485
|
print(f"Could not topUpScannerJobs UserID: {userID}\n{e}")
|
479
486
|
default_logger().debug(e, exc_info=True)
|
@@ -482,15 +489,18 @@ class DBManager:
|
|
482
489
|
if self.conn is not None:
|
483
490
|
self.conn.close()
|
484
491
|
self.conn = None
|
492
|
+
return success
|
485
493
|
|
486
494
|
def resetScannerJobs(self):
|
487
495
|
"""
|
488
496
|
Truncates scannerJobs and clears all jobs from users' alert subscriptions
|
489
497
|
"""
|
490
498
|
try:
|
499
|
+
success1 = False
|
491
500
|
result = self.connection().execute("DELETE from scannerjobs")
|
492
501
|
if result.rows_affected > 0:
|
493
502
|
default_logger().debug(f"scannerJobs truncated !")
|
503
|
+
success1 = True
|
494
504
|
except Exception as e: # pragma: no cover
|
495
505
|
print(f"Could not deleteScannerJobs \n{e}")
|
496
506
|
default_logger().debug(e, exc_info=True)
|
@@ -500,12 +510,14 @@ class DBManager:
|
|
500
510
|
self.conn.close()
|
501
511
|
self.conn = None
|
502
512
|
try:
|
513
|
+
success2 = False
|
503
514
|
result = self.connection().execute("""
|
504
515
|
UPDATE alertsubscriptions
|
505
516
|
SET scannerJobs = ''
|
506
517
|
""")
|
507
518
|
if result.rows_affected > 0:
|
508
519
|
default_logger().debug(f"alertsubscriptions updated with cleaned up scannerJobs!")
|
520
|
+
success2 = True
|
509
521
|
except Exception as e: # pragma: no cover
|
510
522
|
print(f"Could not deleteScannerJobs \n{e}")
|
511
523
|
default_logger().debug(e, exc_info=True)
|
@@ -513,4 +525,5 @@ class DBManager:
|
|
513
525
|
finally:
|
514
526
|
if self.conn is not None:
|
515
527
|
self.conn.close()
|
516
|
-
self.conn = None
|
528
|
+
self.conn = None
|
529
|
+
return success1 and success2
|
@@ -0,0 +1 @@
|
|
1
|
+
VERSION='0.13.20250208.220'
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: PKDevTools
|
3
|
-
Version: 0.13.20250208.
|
3
|
+
Version: 0.13.20250208.220
|
4
4
|
Summary: A general day-to-day toolset for PKScreener repos
|
5
5
|
Home-page: https://github.com/pkjmesra/PKDevTools
|
6
|
-
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250208.
|
6
|
+
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250208.220.zip
|
7
7
|
Author: pkjmesra
|
8
8
|
Author-email: pkjmesra@gmail.com
|
9
9
|
License: OSI Approved (MIT)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: PKDevTools
|
3
|
-
Version: 0.13.20250208.
|
3
|
+
Version: 0.13.20250208.220
|
4
4
|
Summary: A general day-to-day toolset for PKScreener repos
|
5
5
|
Home-page: https://github.com/pkjmesra/PKDevTools
|
6
|
-
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250208.
|
6
|
+
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250208.220.zip
|
7
7
|
Author: pkjmesra
|
8
8
|
Author-email: pkjmesra@gmail.com
|
9
9
|
License: OSI Approved (MIT)
|
@@ -1 +0,0 @@
|
|
1
|
-
VERSION='0.13.20250208.219'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Archiver.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/ColorText.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Committer.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/CookieHelper.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Environment.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/FunctionTimeouts.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/GmailReader.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/MarketHours.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/MenuOptions.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/NSEMarketStatus.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/OutputControls.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKDateUtilities.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKJoinableQueue.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/PKPickler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Singleton.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/SuppressOutput.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/Telegram.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/WorkflowManager.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools/classes/githubutilities.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/entry_points.txt
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/not-zip-safe
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/requires.txt
RENAMED
File without changes
|
{pkdevtools-0.13.20250208.219 → pkdevtools-0.13.20250208.220}/PKDevTools.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|