uiprotect 6.2.0__tar.gz → 6.3.1__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.
Potentially problematic release.
This version of uiprotect might be problematic. Click here for more details.
- {uiprotect-6.2.0 → uiprotect-6.3.1}/PKG-INFO +1 -1
- {uiprotect-6.2.0 → uiprotect-6.3.1}/pyproject.toml +1 -1
- uiprotect-6.3.1/src/uiprotect/_compat.py +13 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/api.py +1 -1
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/base.py +1 -1
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/types.py +2 -1
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/websocket.py +1 -1
- {uiprotect-6.2.0 → uiprotect-6.3.1}/LICENSE +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/README.md +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/__init__.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/__main__.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/__init__.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/backup.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/base.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/cameras.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/chimes.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/doorlocks.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/events.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/lights.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/liveviews.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/nvr.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/sensors.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/cli/viewers.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/__init__.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/bootstrap.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/convert.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/devices.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/nvr.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/data/user.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/exceptions.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/py.typed +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/release_cache.json +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/stream.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/test_util/__init__.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/test_util/anonymize.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/utils.py +0 -0
- {uiprotect-6.2.0 → uiprotect-6.3.1}/src/uiprotect/websocket.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Compat for external lib versions."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from functools import cached_property
|
|
7
|
+
else:
|
|
8
|
+
try:
|
|
9
|
+
from propcache.api import cached_property
|
|
10
|
+
except ImportError:
|
|
11
|
+
from propcache import cached_property
|
|
12
|
+
|
|
13
|
+
__all__ = ("cached_property",)
|
|
@@ -25,9 +25,9 @@ import orjson
|
|
|
25
25
|
from aiofiles import os as aos
|
|
26
26
|
from aiohttp import CookieJar, client_exceptions
|
|
27
27
|
from platformdirs import user_cache_dir, user_config_dir
|
|
28
|
-
from propcache import cached_property
|
|
29
28
|
from yarl import URL
|
|
30
29
|
|
|
30
|
+
from ._compat import cached_property
|
|
31
31
|
from .data import (
|
|
32
32
|
NVR,
|
|
33
33
|
Bootstrap,
|
|
@@ -12,10 +12,10 @@ from typing import TYPE_CHECKING, Any, NamedTuple, TypeVar
|
|
|
12
12
|
from uuid import UUID
|
|
13
13
|
|
|
14
14
|
from convertertools import pop_dict_set_if_none, pop_dict_tuple
|
|
15
|
-
from propcache import cached_property
|
|
16
15
|
from pydantic.v1 import BaseModel
|
|
17
16
|
from pydantic.v1.fields import SHAPE_DICT, SHAPE_LIST, PrivateAttr
|
|
18
17
|
|
|
18
|
+
from .._compat import cached_property
|
|
19
19
|
from ..exceptions import BadRequest, ClientError, NotAuthorized
|
|
20
20
|
from ..utils import (
|
|
21
21
|
asyncio_timeout,
|
|
@@ -6,11 +6,12 @@ from functools import cache
|
|
|
6
6
|
from typing import Any, Literal, Optional, TypeVar, Union
|
|
7
7
|
|
|
8
8
|
from packaging.version import Version as BaseVersion
|
|
9
|
-
from propcache import cached_property
|
|
10
9
|
from pydantic.v1 import BaseModel, ConstrainedInt
|
|
11
10
|
from pydantic.v1.color import Color as BaseColor
|
|
12
11
|
from pydantic.v1.types import ConstrainedFloat, ConstrainedStr
|
|
13
12
|
|
|
13
|
+
from .._compat import cached_property
|
|
14
|
+
|
|
14
15
|
KT = TypeVar("KT")
|
|
15
16
|
VT = TypeVar("VT")
|
|
16
17
|
|
|
@@ -11,8 +11,8 @@ from functools import cache
|
|
|
11
11
|
from typing import TYPE_CHECKING, Any
|
|
12
12
|
|
|
13
13
|
import orjson
|
|
14
|
-
from propcache import cached_property
|
|
15
14
|
|
|
15
|
+
from .._compat import cached_property
|
|
16
16
|
from ..exceptions import WSDecodeError, WSEncodeError
|
|
17
17
|
from .types import ProtectWSPayloadFormat
|
|
18
18
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|