pyloid 0.23.16__py3-none-any.whl → 0.23.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.
- pyloid/browser_window.py +0 -2
- pyloid/pyloid.py +2 -4
- pyloid/store.py +2 -0
- {pyloid-0.23.16.dist-info → pyloid-0.23.17.dist-info}/METADATA +1 -1
- {pyloid-0.23.16.dist-info → pyloid-0.23.17.dist-info}/RECORD +7 -7
- {pyloid-0.23.16.dist-info → pyloid-0.23.17.dist-info}/LICENSE +0 -0
- {pyloid-0.23.16.dist-info → pyloid-0.23.17.dist-info}/WHEEL +0 -0
pyloid/browser_window.py
CHANGED
@@ -877,8 +877,6 @@ class _BrowserWindow:
|
|
877
877
|
self.dev_tools_window.setCentralWidget(dev_tools_view)
|
878
878
|
self.dev_tools_window.resize(800, 600)
|
879
879
|
self.dev_tools_window.show()
|
880
|
-
|
881
|
-
# Add this line to handle dev tools window closure
|
882
880
|
self.dev_tools_window.closeEvent = lambda event: setattr(
|
883
881
|
self, "dev_tools_window", None
|
884
882
|
)
|
pyloid/pyloid.py
CHANGED
@@ -29,13 +29,11 @@ from PySide6.QtCore import QCoreApplication
|
|
29
29
|
from PySide6.QtCore import Signal, QObject, Slot
|
30
30
|
import uuid
|
31
31
|
from PySide6.QtCore import QEventLoop
|
32
|
-
import socket
|
33
32
|
from typing import Any, Set
|
34
33
|
from platformdirs import PlatformDirs
|
35
34
|
from .store import Store
|
36
35
|
from .rpc import PyloidRPC
|
37
36
|
import threading
|
38
|
-
import asyncio
|
39
37
|
import signal
|
40
38
|
|
41
39
|
# software backend
|
@@ -51,12 +49,12 @@ original_signal = signal.signal
|
|
51
49
|
def safe_set_wakeup_fd(fd, *args, **kwargs):
|
52
50
|
if threading.current_thread() is threading.main_thread():
|
53
51
|
return original_set_wakeup_fd(fd, *args, **kwargs)
|
54
|
-
return -1 #
|
52
|
+
return -1 # If not in main thread, do nothing and return -1
|
55
53
|
|
56
54
|
def safe_signal(signalnum, handler):
|
57
55
|
if threading.current_thread() is threading.main_thread():
|
58
56
|
return original_signal(signalnum, handler)
|
59
|
-
return None #
|
57
|
+
return None # If not in main thread, do nothing
|
60
58
|
|
61
59
|
signal.set_wakeup_fd = safe_set_wakeup_fd
|
62
60
|
signal.signal = safe_signal
|
pyloid/store.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import os
|
1
2
|
from pickledb import PickleDB
|
2
3
|
from typing import Any, List, Optional
|
3
4
|
|
@@ -16,6 +17,7 @@ class Store:
|
|
16
17
|
--------
|
17
18
|
>>> store = Store("data.json")
|
18
19
|
"""
|
20
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
19
21
|
self.db = PickleDB(path)
|
20
22
|
|
21
23
|
def get(self, key: str) -> Any:
|
@@ -1,23 +1,23 @@
|
|
1
1
|
pyloid/__init__.py,sha256=YKwMCSOds1QVi9N7EGfY0Z7BEjJn8j6HGqRblZlZClA,235
|
2
2
|
pyloid/api.py,sha256=A61Kmddh8BlpT3LfA6NbPQNzFmD95vQ4WKX53oKsGYU,2419
|
3
3
|
pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
|
4
|
-
pyloid/browser_window.py,sha256=
|
4
|
+
pyloid/browser_window.py,sha256=MR01MllBnidZCiBmVZfdFYaMuLi5OZO6lKPJ09Uqoyg,100623
|
5
5
|
pyloid/custom/titlebar.py,sha256=itzK9pJbZMQ7BKca9kdbuHMffurrw15UijR6OU03Xsk,3894
|
6
6
|
pyloid/filewatcher.py,sha256=3M5zWVUf1OhlkWJcDFC8ZA9agO4Q-U8WdgGpy6kaVz0,4601
|
7
7
|
pyloid/js_api/base.py,sha256=XD3sqWYAb1nw6VgY3xXsU4ls5xLGrxpOqmLRJm_vBso,8669
|
8
8
|
pyloid/js_api/event_api.py,sha256=w0z1DcmwcmseqfcoZWgsQmFC2iBCgTMVJubTaHeXI1c,957
|
9
9
|
pyloid/js_api/window_api.py,sha256=-isphU3m2wGB5U0yZrSuK_4XiBz2mG45HsjYTUq7Fxs,7348
|
10
10
|
pyloid/monitor.py,sha256=1mXvHm5deohnNlTLcRx4sT4x-stnOIb0dUQnnxN50Uo,28295
|
11
|
-
pyloid/pyloid.py,sha256=
|
11
|
+
pyloid/pyloid.py,sha256=xOg452QZttSxYU9G0GMZCFvm391yF5fTAjY3jJfyozc,85340
|
12
12
|
pyloid/rpc.py,sha256=U3G6d5VgCibT0XwSX6eNhLePNyUG8ejfJSf8F43zBpk,18601
|
13
13
|
pyloid/serve.py,sha256=wJIBqiLr1-8FvBdV3yybeBtVXsu94FfWYKjHL0eQ68s,1444
|
14
|
-
pyloid/store.py,sha256=
|
14
|
+
pyloid/store.py,sha256=teoa-HYzwm93Rivcw3AhKw6rAmQqQ_kmF6XYSkC3G_I,4541
|
15
15
|
pyloid/thread_pool.py,sha256=fKOBb8jMfZn_7crA_fJCno8dObBRZE31EIWaNQ759aw,14616
|
16
16
|
pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
|
17
17
|
pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
|
18
18
|
pyloid/url_interceptor.py,sha256=AFjPANDELc9-E-1TnVvkNVc-JZBJYf0677dWQ8LDaqw,726
|
19
19
|
pyloid/utils.py,sha256=NqB8W-irXDtTGb74rrJ2swU6tgzU0HSE8lGewrStOKc,5685
|
20
|
-
pyloid-0.23.
|
21
|
-
pyloid-0.23.
|
22
|
-
pyloid-0.23.
|
23
|
-
pyloid-0.23.
|
20
|
+
pyloid-0.23.17.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
|
21
|
+
pyloid-0.23.17.dist-info/METADATA,sha256=dIEriBfubwQN74-AGtmK8Xiwjyuf1TrJ6jYSTSdcf_o,2216
|
22
|
+
pyloid-0.23.17.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
23
|
+
pyloid-0.23.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|