@scrypted/server 0.7.50 → 0.7.51
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 @scrypted/server might be problematic. Click here for more details.
- package/package.json +1 -1
- package/python/plugin_remote.py +16 -8
- package/python/rpc.py +9 -4
package/package.json
CHANGED
package/python/plugin_remote.py
CHANGED
@@ -2,13 +2,12 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
import asyncio
|
4
4
|
import gc
|
5
|
-
import sys
|
6
5
|
import os
|
7
6
|
import platform
|
8
7
|
import shutil
|
9
8
|
import subprocess
|
9
|
+
import sys
|
10
10
|
import threading
|
11
|
-
import concurrent.futures
|
12
11
|
import time
|
13
12
|
import traceback
|
14
13
|
import zipfile
|
@@ -21,14 +20,23 @@ from os import sys
|
|
21
20
|
from typing import Any, Optional, Set, Tuple
|
22
21
|
|
23
22
|
import scrypted_python.scrypted_sdk.types
|
24
|
-
from scrypted_python.scrypted_sdk import
|
25
|
-
from scrypted_python.scrypted_sdk.types import Device, DeviceManifest,
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
from scrypted_python.scrypted_sdk import PluginFork, ScryptedStatic
|
24
|
+
from scrypted_python.scrypted_sdk.types import (Device, DeviceManifest,
|
25
|
+
EventDetails,
|
26
|
+
ScryptedInterfaceProperty,
|
27
|
+
Storage)
|
28
|
+
|
29
|
+
try:
|
30
|
+
from typing import TypedDict
|
31
|
+
except:
|
32
|
+
from typing_extensions import TypedDict
|
33
|
+
|
34
|
+
import hashlib
|
29
35
|
import multiprocessing
|
30
36
|
import multiprocessing.connection
|
31
|
-
|
37
|
+
|
38
|
+
import rpc
|
39
|
+
import rpc_reader
|
32
40
|
|
33
41
|
class SystemDeviceState(TypedDict):
|
34
42
|
lastEventTime: int
|
package/python/rpc.py
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
-
from asyncio.futures import Future
|
2
|
-
from typing import Any, Callable, Dict, Mapping, List
|
3
|
-
import traceback
|
4
1
|
import inspect
|
5
|
-
|
2
|
+
import traceback
|
3
|
+
from asyncio.futures import Future
|
4
|
+
from typing import Any, Callable, Dict, List, Mapping
|
5
|
+
|
6
|
+
try:
|
7
|
+
from typing import TypedDict
|
8
|
+
except:
|
9
|
+
from typing_extensions import TypedDict
|
10
|
+
|
6
11
|
import weakref
|
7
12
|
|
8
13
|
jsonSerializable = set()
|