pyloid 0.23.16__py3-none-any.whl → 0.23.18__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 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 # 메인 스레드가 아닌 경우 아무것도 하지 않고 -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
@@ -1668,11 +1666,6 @@ class Pyloid(QObject):
1668
1666
  The name of the application.
1669
1667
  single_instance : bool, optional
1670
1668
  Determines whether to run as a single instance. (Default is True)
1671
-
1672
- Notes
1673
- -----
1674
- The generated or passed `id` is transmitted to the frontend via IPC,
1675
- and is used as an API key to connect to the integrated backend FastAPI server.
1676
1669
  """
1677
1670
  super().__init__()
1678
1671
 
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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.16
3
+ Version: 0.23.18
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -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=HJclf_0eXK2nIo7jKX_0N1-ApVF2xeYChKjhzq2U07s,100685
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=IyoQfRXJ1U2YMur-1J7HULszGMikL8MLqFgXoUb0crQ,85421
11
+ pyloid/pyloid.py,sha256=qc6b5ppSRam-ILNIVAhMdPQe7THo6JmkVruqR9VkXbI,85142
12
12
  pyloid/rpc.py,sha256=U3G6d5VgCibT0XwSX6eNhLePNyUG8ejfJSf8F43zBpk,18601
13
13
  pyloid/serve.py,sha256=wJIBqiLr1-8FvBdV3yybeBtVXsu94FfWYKjHL0eQ68s,1444
14
- pyloid/store.py,sha256=p0plJj52hQjjtNMVJhy20eNLXfQ3Qmf7LtGHQk7FiPg,4471
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.16.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
21
- pyloid-0.23.16.dist-info/METADATA,sha256=aaWrHQErXdEKNyYR1eWx36pHv_iIf31oxdzIFAS4J3U,2216
22
- pyloid-0.23.16.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
- pyloid-0.23.16.dist-info/RECORD,,
20
+ pyloid-0.23.18.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
21
+ pyloid-0.23.18.dist-info/METADATA,sha256=rPQtz8ZdYfgl70JofirvU9315qfO3fhciBqPzho5nmE,2216
22
+ pyloid-0.23.18.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
+ pyloid-0.23.18.dist-info/RECORD,,