uiprotect 6.2.0__tar.gz → 6.3.0__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.

Files changed (37) hide show
  1. {uiprotect-6.2.0 → uiprotect-6.3.0}/PKG-INFO +1 -1
  2. {uiprotect-6.2.0 → uiprotect-6.3.0}/pyproject.toml +1 -1
  3. uiprotect-6.3.0/src/uiprotect/_compat.py +8 -0
  4. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/api.py +1 -1
  5. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/base.py +1 -1
  6. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/types.py +2 -1
  7. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/websocket.py +1 -1
  8. {uiprotect-6.2.0 → uiprotect-6.3.0}/LICENSE +0 -0
  9. {uiprotect-6.2.0 → uiprotect-6.3.0}/README.md +0 -0
  10. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/__init__.py +0 -0
  11. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/__main__.py +0 -0
  12. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/__init__.py +0 -0
  13. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/backup.py +0 -0
  14. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/base.py +0 -0
  15. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/cameras.py +0 -0
  16. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/chimes.py +0 -0
  17. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/doorlocks.py +0 -0
  18. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/events.py +0 -0
  19. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/lights.py +0 -0
  20. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/liveviews.py +0 -0
  21. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/nvr.py +0 -0
  22. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/sensors.py +0 -0
  23. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/cli/viewers.py +0 -0
  24. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/__init__.py +0 -0
  25. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/bootstrap.py +0 -0
  26. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/convert.py +0 -0
  27. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/devices.py +0 -0
  28. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/nvr.py +0 -0
  29. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/data/user.py +0 -0
  30. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/exceptions.py +0 -0
  31. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/py.typed +0 -0
  32. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/release_cache.json +0 -0
  33. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/stream.py +0 -0
  34. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/test_util/__init__.py +0 -0
  35. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/test_util/anonymize.py +0 -0
  36. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/utils.py +0 -0
  37. {uiprotect-6.2.0 → uiprotect-6.3.0}/src/uiprotect/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uiprotect
3
- Version: 6.2.0
3
+ Version: 6.3.0
4
4
  Summary: Python API for Unifi Protect (Unofficial)
5
5
  Home-page: https://github.com/uilibs/uiprotect
6
6
  Author: UI Protect Maintainers
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "uiprotect"
3
- version = "6.2.0"
3
+ version = "6.3.0"
4
4
  description = "Python API for Unifi Protect (Unofficial)"
5
5
  authors = ["UI Protect Maintainers <ui@koston.org>"]
6
6
  readme = "README.md"
@@ -0,0 +1,8 @@
1
+ """Compat for external lib versions."""
2
+
3
+ try:
4
+ from propcache.api import cached_property
5
+ except ImportError:
6
+ from propcache import cached_property
7
+
8
+ __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