pyimouapi 1.2.7__tar.gz → 1.2.8__tar.gz
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.
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/PKG-INFO +3 -13
- pyimouapi-1.2.8/pyimouapi/__init__.py +20 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi/const.py +1 -1
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi/device.py +43 -43
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi/ha_device.py +525 -359
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi/openapi.py +19 -21
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi.egg-info/PKG-INFO +3 -13
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi.egg-info/SOURCES.txt +4 -1
- pyimouapi-1.2.8/pyproject.toml +70 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/setup.py +5 -3
- pyimouapi-1.2.8/tests/test_collect_property_entities.py +49 -0
- pyimouapi-1.2.8/tests/test_lookup_property.py +46 -0
- pyimouapi-1.2.8/tests/test_update_from_detail.py +108 -0
- pyimouapi-1.2.7/pyimouapi/__init__.py +0 -9
- pyimouapi-1.2.7/pyproject.toml +0 -3
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/LICENSE +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/README.md +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi/exceptions.py +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi.egg-info/dependency_links.txt +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi.egg-info/requires.txt +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/pyimouapi.egg-info/top_level.txt +0 -0
- {pyimouapi-1.2.7 → pyimouapi-1.2.8}/setup.cfg +0 -0
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyimouapi
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.8
|
|
4
4
|
Summary: A package for imou open api
|
|
5
5
|
Home-page: https://github.com/Imou-OpenPlatform/Py-Imou-Open-Api
|
|
6
6
|
Author: Imou-OpenPlatform
|
|
7
|
-
Author-email: cloud_openteam_service@imou.com
|
|
7
|
+
Author-email: Imou-OpenPlatform <cloud_openteam_service@imou.com>
|
|
8
8
|
License: MIT
|
|
9
|
-
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
9
|
+
Project-URL: Homepage, https://github.com/Imou-OpenPlatform/Py-Imou-Open-Api
|
|
13
10
|
Requires-Python: >=3.11
|
|
14
11
|
Description-Content-Type: text/markdown
|
|
15
12
|
License-File: LICENSE
|
|
16
13
|
Requires-Dist: aiohttp<4.0,>=3.11.9
|
|
17
14
|
Requires-Dist: simpleeval>=1.0.3
|
|
18
15
|
Dynamic: author
|
|
19
|
-
Dynamic: author-email
|
|
20
|
-
Dynamic: classifier
|
|
21
|
-
Dynamic: description
|
|
22
|
-
Dynamic: description-content-type
|
|
23
16
|
Dynamic: home-page
|
|
24
|
-
Dynamic: license
|
|
25
17
|
Dynamic: license-file
|
|
26
|
-
Dynamic: requires-dist
|
|
27
18
|
Dynamic: requires-python
|
|
28
|
-
Dynamic: summary
|
|
29
19
|
|
|
30
20
|
# pyimouapi
|
|
31
21
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
__version__ = "1.2.8"
|
|
2
|
+
|
|
3
|
+
from .device import ImouChannel, ImouDevice, ImouDeviceManager
|
|
4
|
+
from .exceptions import (
|
|
5
|
+
ConnectFailedException,
|
|
6
|
+
InvalidAppIdOrSecretException,
|
|
7
|
+
RequestFailedException,
|
|
8
|
+
)
|
|
9
|
+
from .openapi import ImouOpenApiClient
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"ConnectFailedException",
|
|
13
|
+
"ImouChannel",
|
|
14
|
+
"ImouDevice",
|
|
15
|
+
"ImouDeviceManager",
|
|
16
|
+
"ImouOpenApiClient",
|
|
17
|
+
"InvalidAppIdOrSecretException",
|
|
18
|
+
"RequestFailedException",
|
|
19
|
+
"__version__",
|
|
20
|
+
]
|
|
@@ -3,63 +3,63 @@ from __future__ import annotations
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
5
|
from .const import (
|
|
6
|
-
|
|
7
|
-
PARAM_PAGE_SIZE,
|
|
8
|
-
PARAM_PAGE,
|
|
9
|
-
PARAM_DEVICE_ID,
|
|
10
|
-
PARAM_CHANNEL_ID,
|
|
6
|
+
API_ENDPOINT_BIND_DEVICE_LIVE,
|
|
11
7
|
API_ENDPOINT_CONTROL_DEVICE_PTZ,
|
|
12
|
-
|
|
13
|
-
API_ENDPOINT_GET_DEVICE_STATUS,
|
|
14
|
-
API_ENDPOINT_SET_DEVICE_STATUS,
|
|
15
|
-
API_ENDPOINT_GET_DEVICE_NIGHT_VISION_MODE,
|
|
8
|
+
API_ENDPOINT_DEVICE_SD_CARD_STATUS,
|
|
16
9
|
API_ENDPOINT_DEVICE_STORAGE,
|
|
17
|
-
|
|
18
|
-
API_ENDPOINT_BIND_DEVICE_LIVE,
|
|
19
|
-
API_ENDPOINT_GET_DEVICE_ONLINE,
|
|
10
|
+
API_ENDPOINT_GET_DEVICE_ALARM_PARAM,
|
|
20
11
|
API_ENDPOINT_GET_DEVICE_LIVE_INFO,
|
|
12
|
+
API_ENDPOINT_GET_DEVICE_NIGHT_VISION_MODE,
|
|
13
|
+
API_ENDPOINT_GET_DEVICE_ONLINE,
|
|
14
|
+
API_ENDPOINT_GET_DEVICE_POWER_INFO,
|
|
15
|
+
API_ENDPOINT_GET_DEVICE_STATUS,
|
|
16
|
+
API_ENDPOINT_GET_IOT_DEVICE_DETAIL_INFO,
|
|
17
|
+
API_ENDPOINT_GET_IOT_DEVICE_PROPERTIES,
|
|
18
|
+
API_ENDPOINT_GET_PRODUCT_MODEL,
|
|
19
|
+
API_ENDPOINT_IOT_DEVICE_CONTROL,
|
|
20
|
+
API_ENDPOINT_LIST_DEVICE_DETAILS,
|
|
21
|
+
API_ENDPOINT_MODIFY_DEVICE_ALARM_STATUS,
|
|
22
|
+
API_ENDPOINT_RESTART_DEVICE,
|
|
23
|
+
API_ENDPOINT_SET_DEVICE_NIGHT_VISION_MODE,
|
|
21
24
|
API_ENDPOINT_SET_DEVICE_SNAP,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
API_ENDPOINT_SET_DEVICE_STATUS,
|
|
26
|
+
API_ENDPOINT_SET_IOT_DEVICE_PROPERTIES,
|
|
27
|
+
API_ENDPOINT_WAKE_UP_DEVICE,
|
|
28
|
+
NIGHT_VISION_MODE_MAP,
|
|
29
|
+
PARAM_ABILITY_REFS,
|
|
30
|
+
PARAM_ACCESS_TYPE,
|
|
31
|
+
PARAM_BRAND,
|
|
32
|
+
PARAM_CHANNEL_ABILITY,
|
|
33
|
+
PARAM_CHANNEL_ID,
|
|
34
|
+
PARAM_CHANNEL_LIST,
|
|
35
|
+
PARAM_CHANNEL_NAME,
|
|
36
|
+
PARAM_CHANNEL_NUM,
|
|
37
|
+
PARAM_CHANNEL_STATUS,
|
|
38
|
+
PARAM_CHANNELS,
|
|
39
|
+
PARAM_CONTENT,
|
|
25
40
|
PARAM_COUNT,
|
|
41
|
+
PARAM_DEVICE_ABILITY,
|
|
42
|
+
PARAM_DEVICE_ID,
|
|
26
43
|
PARAM_DEVICE_LIST,
|
|
44
|
+
PARAM_DEVICE_MODEL,
|
|
27
45
|
PARAM_DEVICE_NAME,
|
|
28
46
|
PARAM_DEVICE_STATUS,
|
|
29
|
-
PARAM_DEVICE_ABILITY,
|
|
30
47
|
PARAM_DEVICE_VERSION,
|
|
31
|
-
PARAM_BRAND,
|
|
32
|
-
PARAM_DEVICE_MODEL,
|
|
33
|
-
PARAM_CHANNEL_LIST,
|
|
34
|
-
PARAM_CHANNEL_NAME,
|
|
35
|
-
PARAM_CHANNEL_STATUS,
|
|
36
|
-
PARAM_CHANNEL_ABILITY,
|
|
37
|
-
PARAM_STREAM_ID,
|
|
38
|
-
PARAM_OPERATION,
|
|
39
48
|
PARAM_DURATION,
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
PARAM_ENABLE,
|
|
50
|
+
PARAM_ENABLE_TYPE,
|
|
51
|
+
PARAM_MODE,
|
|
52
|
+
PARAM_MULTI_FLAG,
|
|
53
|
+
PARAM_OPERATION,
|
|
54
|
+
PARAM_PAGE,
|
|
55
|
+
PARAM_PAGE_SIZE,
|
|
56
|
+
PARAM_PARENT_DEVICE_ID,
|
|
57
|
+
PARAM_PARENT_PRODUCT_ID,
|
|
42
58
|
PARAM_PRODUCT_ID,
|
|
43
59
|
PARAM_PROPERTIES,
|
|
44
|
-
API_ENDPOINT_GET_IOT_DEVICE_PROPERTIES,
|
|
45
|
-
API_ENDPOINT_SET_IOT_DEVICE_PROPERTIES,
|
|
46
|
-
API_ENDPOINT_DEVICE_SD_CARD_STATUS,
|
|
47
|
-
PARAM_CHANNEL_NUM,
|
|
48
|
-
PARAM_PARENT_PRODUCT_ID,
|
|
49
|
-
PARAM_PARENT_DEVICE_ID,
|
|
50
60
|
PARAM_REF,
|
|
51
|
-
|
|
52
|
-
API_ENDPOINT_IOT_DEVICE_CONTROL,
|
|
53
|
-
PARAM_MULTI_FLAG,
|
|
54
|
-
API_ENDPOINT_GET_DEVICE_POWER_INFO,
|
|
55
|
-
API_ENDPOINT_GET_PRODUCT_MODEL,
|
|
56
|
-
API_ENDPOINT_GET_IOT_DEVICE_DETAIL_INFO,
|
|
57
|
-
PARAM_ABILITY_REFS,
|
|
58
|
-
PARAM_CHANNELS,
|
|
59
|
-
PARAM_ACCESS_TYPE,
|
|
60
|
-
API_ENDPOINT_WAKE_UP_DEVICE,
|
|
61
|
+
PARAM_STREAM_ID,
|
|
61
62
|
PARAM_URL,
|
|
62
|
-
NIGHT_VISION_MODE_MAP,
|
|
63
63
|
)
|
|
64
64
|
from .openapi import ImouOpenApiClient
|
|
65
65
|
|