pyimouapi 1.2.3__tar.gz → 1.2.4__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.3 → pyimouapi-1.2.4}/PKG-INFO +3 -2
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/openapi.py +2 -2
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi.egg-info/PKG-INFO +3 -2
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi.egg-info/requires.txt +0 -1
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/setup.py +2 -2
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/LICENSE +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/README.md +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/__init__.py +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/const.py +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/device.py +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/exceptions.py +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi/ha_device.py +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi.egg-info/SOURCES.txt +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi.egg-info/dependency_links.txt +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/pyimouapi.egg-info/top_level.txt +0 -0
- {pyimouapi-1.2.3 → pyimouapi-1.2.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyimouapi
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
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
|
|
@@ -10,10 +10,10 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Topic :: Software Development :: Libraries
|
|
13
|
+
Requires-Python: >=3.11
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
License-File: LICENSE
|
|
15
16
|
Requires-Dist: aiohttp<4.0,>=3.11.9
|
|
16
|
-
Requires-Dist: async-timeout>=4.0
|
|
17
17
|
Requires-Dist: simpleeval>=1.0.3
|
|
18
18
|
Dynamic: author
|
|
19
19
|
Dynamic: author-email
|
|
@@ -24,6 +24,7 @@ Dynamic: home-page
|
|
|
24
24
|
Dynamic: license
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
27
28
|
Dynamic: summary
|
|
28
29
|
|
|
29
30
|
## 打包
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import asyncio
|
|
1
2
|
import hashlib
|
|
2
3
|
import json
|
|
3
4
|
import logging
|
|
@@ -6,7 +7,6 @@ import time
|
|
|
6
7
|
import uuid
|
|
7
8
|
|
|
8
9
|
import aiohttp
|
|
9
|
-
import async_timeout
|
|
10
10
|
|
|
11
11
|
from .const import (
|
|
12
12
|
API_ENDPOINT_ACCESS_TOKEN,
|
|
@@ -85,7 +85,7 @@ class ImouOpenApiClient:
|
|
|
85
85
|
url = f"https://{self._api_url}{endpoint}"
|
|
86
86
|
try:
|
|
87
87
|
async with aiohttp.ClientSession() as session:
|
|
88
|
-
async with
|
|
88
|
+
async with asyncio.timeout(30):
|
|
89
89
|
response = await session.request(
|
|
90
90
|
"POST", url, json=body, headers=headers
|
|
91
91
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyimouapi
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
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
|
|
@@ -10,10 +10,10 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Topic :: Software Development :: Libraries
|
|
13
|
+
Requires-Python: >=3.11
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
14
15
|
License-File: LICENSE
|
|
15
16
|
Requires-Dist: aiohttp<4.0,>=3.11.9
|
|
16
|
-
Requires-Dist: async-timeout>=4.0
|
|
17
17
|
Requires-Dist: simpleeval>=1.0.3
|
|
18
18
|
Dynamic: author
|
|
19
19
|
Dynamic: author-email
|
|
@@ -24,6 +24,7 @@ Dynamic: home-page
|
|
|
24
24
|
Dynamic: license
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
27
28
|
Dynamic: summary
|
|
28
29
|
|
|
29
30
|
## 打包
|
|
@@ -2,11 +2,11 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="pyimouapi",
|
|
5
|
-
version="1.2.
|
|
5
|
+
version="1.2.4",
|
|
6
6
|
packages=find_packages(),
|
|
7
|
+
python_requires=">=3.11",
|
|
7
8
|
install_requires=[
|
|
8
9
|
"aiohttp>=3.11.9,<4.0",
|
|
9
|
-
"async-timeout>=4.0",
|
|
10
10
|
"simpleeval>=1.0.3",
|
|
11
11
|
],
|
|
12
12
|
description="A package for imou open api",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|