PKDevTools 0.13.20250212.227__tar.gz → 0.13.20250212.228__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- pkdevtools-0.13.20250212.228/PKDevTools/classes/__init__.py +1 -0
- pkdevtools-0.13.20250212.228/PKDevTools/classes/pubsub/__init__.py +24 -0
- pkdevtools-0.13.20250212.228/PKDevTools/classes/pubsub/events.py +29 -0
- pkdevtools-0.13.20250212.228/PKDevTools/classes/pubsub/publisher.py +31 -0
- pkdevtools-0.13.20250212.228/PKDevTools/classes/pubsub/subscriber.py +36 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/PKG-INFO +2 -2
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/SOURCES.txt +5 -1
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKG-INFO +2 -2
- pkdevtools-0.13.20250212.227/PKDevTools/classes/__init__.py +0 -1
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/LICENSE +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/LICENSE.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/README.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/__init__.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Archiver.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/ColorText.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Committer.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/CookieHelper.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/DBManager.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Environment.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Fetcher.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/FunctionTimeouts.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/GmailReader.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/MarketHours.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/MenuOptions.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/NSEMarketStatus.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/OutputControls.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKDateUtilities.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKGitFolderDownloader.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKJoinableQueue.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKMultiProcessorClient.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKPickler.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKTimer.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Pikey.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Singleton.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/SuppressOutput.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/System.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Telegram.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/UserSubscriptions.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Utils.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/WorkflowManager.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/githubutilities.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/log.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/multiprocessing_logging.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/squash.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/updater.py +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/release.md +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/requirements.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/dependency_links.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/entry_points.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/not-zip-safe +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/requires.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/top_level.txt +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/README.md +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/setup.cfg +0 -0
- {pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/setup.py +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
VERSION='0.13.20250212.228'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"""
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2023 pkjmesra
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
23
|
+
|
24
|
+
"""
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"""
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2023 pkjmesra
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
from blinker import Signal
|
27
|
+
|
28
|
+
# Define a global signal
|
29
|
+
globalEventsSignal = Signal()
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"""
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2023 pkjmesra
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
23
|
+
|
24
|
+
"""
|
25
|
+
from PKDevTools.classes.pubsub.events import globalEventsSignal
|
26
|
+
|
27
|
+
class PKUserService:
|
28
|
+
def notify_user(self, scannerID=None,notification=None):
|
29
|
+
print(f"[UserService] Notifying for scanner: {scannerID} with notification: {notification}")
|
30
|
+
# Publish the event
|
31
|
+
globalEventsSignal.send(self, scannerID=scannerID,notification=notification)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"""
|
2
|
+
The MIT License (MIT)
|
3
|
+
|
4
|
+
Copyright (c) 2023 pkjmesra
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
14
|
+
copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
+
SOFTWARE.
|
23
|
+
|
24
|
+
"""
|
25
|
+
from PKDevTools.classes.pubsub.events import globalEventsSignal
|
26
|
+
|
27
|
+
class PKNotificationService:
|
28
|
+
def __init__(self):
|
29
|
+
# Subscribe to the event
|
30
|
+
globalEventsSignal.connect(self.notify)
|
31
|
+
|
32
|
+
def notify(self, sender, **kwargs):
|
33
|
+
print(f"[Notification] Notifying for {kwargs['scannerID']} with data: {kwargs['notification']}")
|
34
|
+
|
35
|
+
# Ensure the subscriber is instantiated so it listens to events
|
36
|
+
notification_service = PKNotificationService()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: PKDevTools
|
3
|
-
Version: 0.13.20250212.
|
3
|
+
Version: 0.13.20250212.228
|
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.20250212.
|
6
|
+
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250212.228.zip
|
7
7
|
Author: pkjmesra
|
8
8
|
Author-email: pkjmesra@gmail.com
|
9
9
|
License: OSI Approved (MIT)
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/SOURCES.txt
RENAMED
@@ -46,4 +46,8 @@ PKDevTools/classes/githubutilities.py
|
|
46
46
|
PKDevTools/classes/log.py
|
47
47
|
PKDevTools/classes/multiprocessing_logging.py
|
48
48
|
PKDevTools/classes/squash.py
|
49
|
-
PKDevTools/classes/updater.py
|
49
|
+
PKDevTools/classes/updater.py
|
50
|
+
PKDevTools/classes/pubsub/__init__.py
|
51
|
+
PKDevTools/classes/pubsub/events.py
|
52
|
+
PKDevTools/classes/pubsub/publisher.py
|
53
|
+
PKDevTools/classes/pubsub/subscriber.py
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: PKDevTools
|
3
|
-
Version: 0.13.20250212.
|
3
|
+
Version: 0.13.20250212.228
|
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.20250212.
|
6
|
+
Download-URL: https://github.com/pkjmesra/PKDevTools/archive/v0.13.20250212.228.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.20250212.227'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Archiver.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/ColorText.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Committer.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/CookieHelper.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/DBManager.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Environment.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/FunctionTimeouts.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/GmailReader.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/MarketHours.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/MenuOptions.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/NSEMarketStatus.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/OutputControls.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKDateUtilities.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKJoinableQueue.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/PKPickler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Singleton.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/SuppressOutput.py
RENAMED
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/Telegram.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools/classes/WorkflowManager.py
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/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
|
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/entry_points.txt
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/not-zip-safe
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/requires.txt
RENAMED
File without changes
|
{pkdevtools-0.13.20250212.227 → pkdevtools-0.13.20250212.228}/PKDevTools.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|