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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyimouapi
3
- Version: 1.2.3
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 async_timeout.timeout(30):
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
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,2 @@
1
1
  aiohttp<4.0,>=3.11.9
2
- async-timeout>=4.0
3
2
  simpleeval>=1.0.3
@@ -2,11 +2,11 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pyimouapi",
5
- version="1.2.3",
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