uiprotect 0.1.0__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.
Potentially problematic release.
This version of uiprotect might be problematic. Click here for more details.
- uiprotect/__init__.py +13 -0
- uiprotect/__main__.py +24 -0
- uiprotect/api.py +1936 -0
- uiprotect/cli/__init__.py +314 -0
- uiprotect/cli/backup.py +1103 -0
- uiprotect/cli/base.py +238 -0
- uiprotect/cli/cameras.py +574 -0
- uiprotect/cli/chimes.py +180 -0
- uiprotect/cli/doorlocks.py +125 -0
- uiprotect/cli/events.py +258 -0
- uiprotect/cli/lights.py +119 -0
- uiprotect/cli/liveviews.py +65 -0
- uiprotect/cli/nvr.py +154 -0
- uiprotect/cli/sensors.py +278 -0
- uiprotect/cli/viewers.py +76 -0
- uiprotect/data/__init__.py +157 -0
- uiprotect/data/base.py +1116 -0
- uiprotect/data/bootstrap.py +634 -0
- uiprotect/data/convert.py +77 -0
- uiprotect/data/devices.py +3384 -0
- uiprotect/data/nvr.py +1520 -0
- uiprotect/data/types.py +630 -0
- uiprotect/data/user.py +236 -0
- uiprotect/data/websocket.py +236 -0
- uiprotect/exceptions.py +41 -0
- uiprotect/py.typed +0 -0
- uiprotect/release_cache.json +1 -0
- uiprotect/stream.py +166 -0
- uiprotect/test_util/__init__.py +531 -0
- uiprotect/test_util/anonymize.py +257 -0
- uiprotect/utils.py +610 -0
- uiprotect/websocket.py +225 -0
- uiprotect-0.1.0.dist-info/LICENSE +23 -0
- uiprotect-0.1.0.dist-info/METADATA +245 -0
- uiprotect-0.1.0.dist-info/RECORD +37 -0
- uiprotect-0.1.0.dist-info/WHEEL +4 -0
- uiprotect-0.1.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from uiprotect.data.base import (
|
|
4
|
+
ProtectAdoptableDeviceModel,
|
|
5
|
+
ProtectBaseObject,
|
|
6
|
+
ProtectDeviceModel,
|
|
7
|
+
ProtectModel,
|
|
8
|
+
ProtectModelWithId,
|
|
9
|
+
)
|
|
10
|
+
from uiprotect.data.bootstrap import Bootstrap
|
|
11
|
+
from uiprotect.data.convert import create_from_unifi_dict
|
|
12
|
+
from uiprotect.data.devices import (
|
|
13
|
+
Bridge,
|
|
14
|
+
Camera,
|
|
15
|
+
CameraChannel,
|
|
16
|
+
Chime,
|
|
17
|
+
Doorlock,
|
|
18
|
+
LCDMessage,
|
|
19
|
+
Light,
|
|
20
|
+
RingSetting,
|
|
21
|
+
Sensor,
|
|
22
|
+
Viewer,
|
|
23
|
+
)
|
|
24
|
+
from uiprotect.data.nvr import (
|
|
25
|
+
NVR,
|
|
26
|
+
DoorbellMessage,
|
|
27
|
+
Event,
|
|
28
|
+
Liveview,
|
|
29
|
+
NVRLocation,
|
|
30
|
+
SmartDetectItem,
|
|
31
|
+
SmartDetectTrack,
|
|
32
|
+
)
|
|
33
|
+
from uiprotect.data.types import (
|
|
34
|
+
DEFAULT,
|
|
35
|
+
DEFAULT_TYPE,
|
|
36
|
+
AnalyticsOption,
|
|
37
|
+
AudioStyle,
|
|
38
|
+
ChimeType,
|
|
39
|
+
Color,
|
|
40
|
+
CoordType,
|
|
41
|
+
DoorbellMessageType,
|
|
42
|
+
DoorbellText,
|
|
43
|
+
EventCategories,
|
|
44
|
+
EventType,
|
|
45
|
+
FixSizeOrderedDict,
|
|
46
|
+
HDRMode,
|
|
47
|
+
ICRCustomValue,
|
|
48
|
+
ICRLuxValue,
|
|
49
|
+
IRLEDMode,
|
|
50
|
+
LensType,
|
|
51
|
+
LightModeEnableType,
|
|
52
|
+
LightModeType,
|
|
53
|
+
LockStatusType,
|
|
54
|
+
ModelType,
|
|
55
|
+
MountType,
|
|
56
|
+
Percent,
|
|
57
|
+
PermissionNode,
|
|
58
|
+
ProtectWSPayloadFormat,
|
|
59
|
+
PTZPosition,
|
|
60
|
+
PTZPreset,
|
|
61
|
+
RecordingMode,
|
|
62
|
+
SensorStatusType,
|
|
63
|
+
SensorType,
|
|
64
|
+
SmartDetectAudioType,
|
|
65
|
+
SmartDetectObjectType,
|
|
66
|
+
StateType,
|
|
67
|
+
StorageType,
|
|
68
|
+
Version,
|
|
69
|
+
VideoMode,
|
|
70
|
+
WDRLevel,
|
|
71
|
+
)
|
|
72
|
+
from uiprotect.data.user import CloudAccount, Group, Permission, User, UserLocation
|
|
73
|
+
from uiprotect.data.websocket import (
|
|
74
|
+
WS_HEADER_SIZE,
|
|
75
|
+
WSAction,
|
|
76
|
+
WSJSONPacketFrame,
|
|
77
|
+
WSPacket,
|
|
78
|
+
WSPacketFrameHeader,
|
|
79
|
+
WSRawPacketFrame,
|
|
80
|
+
WSSubscriptionMessage,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
__all__ = [
|
|
84
|
+
"DEFAULT",
|
|
85
|
+
"DEFAULT_TYPE",
|
|
86
|
+
"NVR",
|
|
87
|
+
"WS_HEADER_SIZE",
|
|
88
|
+
"AnalyticsOption",
|
|
89
|
+
"AudioStyle",
|
|
90
|
+
"Bootstrap",
|
|
91
|
+
"Bridge",
|
|
92
|
+
"Camera",
|
|
93
|
+
"CameraChannel",
|
|
94
|
+
"Chime",
|
|
95
|
+
"ChimeType",
|
|
96
|
+
"CloudAccount",
|
|
97
|
+
"Color",
|
|
98
|
+
"CoordType",
|
|
99
|
+
"DoorbellMessage",
|
|
100
|
+
"DoorbellMessageType",
|
|
101
|
+
"DoorbellText",
|
|
102
|
+
"Doorlock",
|
|
103
|
+
"Event",
|
|
104
|
+
"EventCategories",
|
|
105
|
+
"EventType",
|
|
106
|
+
"FixSizeOrderedDict",
|
|
107
|
+
"Group",
|
|
108
|
+
"HDRMode",
|
|
109
|
+
"ICRCustomValue",
|
|
110
|
+
"ICRLuxValue",
|
|
111
|
+
"IRLEDMode",
|
|
112
|
+
"LCDMessage",
|
|
113
|
+
"LensType",
|
|
114
|
+
"Light",
|
|
115
|
+
"LightModeEnableType",
|
|
116
|
+
"LightModeType",
|
|
117
|
+
"Liveview",
|
|
118
|
+
"LockStatusType",
|
|
119
|
+
"ModelType",
|
|
120
|
+
"MountType",
|
|
121
|
+
"NVRLocation",
|
|
122
|
+
"PTZPosition",
|
|
123
|
+
"PTZPreset",
|
|
124
|
+
"Percent",
|
|
125
|
+
"Permission",
|
|
126
|
+
"PermissionNode",
|
|
127
|
+
"ProtectAdoptableDeviceModel",
|
|
128
|
+
"ProtectBaseObject",
|
|
129
|
+
"ProtectDeviceModel",
|
|
130
|
+
"ProtectModel",
|
|
131
|
+
"ProtectModelWithId",
|
|
132
|
+
"ProtectWSPayloadFormat",
|
|
133
|
+
"RecordingMode",
|
|
134
|
+
"RingSetting",
|
|
135
|
+
"Sensor",
|
|
136
|
+
"SensorStatusType",
|
|
137
|
+
"SensorType",
|
|
138
|
+
"SmartDetectAudioType",
|
|
139
|
+
"SmartDetectItem",
|
|
140
|
+
"SmartDetectObjectType",
|
|
141
|
+
"SmartDetectTrack",
|
|
142
|
+
"StateType",
|
|
143
|
+
"StorageType",
|
|
144
|
+
"User",
|
|
145
|
+
"UserLocation",
|
|
146
|
+
"Version",
|
|
147
|
+
"VideoMode",
|
|
148
|
+
"Viewer",
|
|
149
|
+
"WDRLevel",
|
|
150
|
+
"WSAction",
|
|
151
|
+
"WSJSONPacketFrame",
|
|
152
|
+
"WSPacket",
|
|
153
|
+
"WSPacketFrameHeader",
|
|
154
|
+
"WSRawPacketFrame",
|
|
155
|
+
"WSSubscriptionMessage",
|
|
156
|
+
"create_from_unifi_dict",
|
|
157
|
+
]
|