casambi-bt-revamped 0.3.9__tar.gz → 0.3.11__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.
Files changed (23) hide show
  1. {casambi_bt_revamped-0.3.9/src/casambi_bt_revamped.egg-info → casambi_bt_revamped-0.3.11}/PKG-INFO +6 -6
  2. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/README.md +2 -2
  3. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/setup.cfg +4 -4
  4. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_cache.py +9 -9
  5. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11/src/casambi_bt_revamped.egg-info}/PKG-INFO +6 -6
  6. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/casambi_bt_revamped.egg-info/requires.txt +2 -2
  7. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/LICENSE +0 -0
  8. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/pyproject.toml +0 -0
  9. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/__init__.py +0 -0
  10. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_casambi.py +0 -0
  11. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_client.py +0 -0
  12. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_constants.py +0 -0
  13. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_discover.py +0 -0
  14. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_encryption.py +0 -0
  15. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_keystore.py +0 -0
  16. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_network.py +0 -0
  17. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_operation.py +0 -0
  18. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/_unit.py +0 -0
  19. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/errors.py +0 -0
  20. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/CasambiBt/py.typed +0 -0
  21. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/casambi_bt_revamped.egg-info/SOURCES.txt +0 -0
  22. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/casambi_bt_revamped.egg-info/dependency_links.txt +0 -0
  23. {casambi_bt_revamped-0.3.9 → casambi_bt_revamped-0.3.11}/src/casambi_bt_revamped.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: casambi-bt-revamped
3
- Version: 0.3.9
4
- Summary: Enhanced Casambi Bluetooth client library with switch event support
3
+ Version: 0.3.11
4
+ Summary: Forked Casambi Bluetooth client library with switch event support, use original if no special need. https://github.com/lkempf/casambi-bt
5
5
  Home-page: https://github.com/rankjie/casambi-bt
6
6
  Author: rankjie
7
7
  Author-email: rankjie@gmail.com
@@ -12,19 +12,19 @@ Classifier: Development Status :: 4 - Beta
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: bleak>=2.1.0
15
+ Requires-Dist: bleak!=2.0.0,>=0.22
16
16
  Requires-Dist: cryptography>=40.0.0
17
17
  Requires-Dist: httpx>=0.25
18
18
  Requires-Dist: bleak_retry_connector>=3.6.0
19
- Requires-Dist: aiopath==0.7.*
19
+ Requires-Dist: anyio>=4.10.0
20
20
  Dynamic: license-file
21
21
 
22
22
  ![PyPI](https://img.shields.io/pypi/v/casambi-bt-revamped)
23
23
  [![Discord](https://img.shields.io/discord/1186445089317326888)](https://discord.gg/jgZVugfx)
24
24
 
25
- # Casambi Bluetooth Revamped - Enhanced Python library for Casambi networks
25
+ # Casambi Bluetooth Revamped - Python library for Casambi networks
26
26
 
27
- This is an enhanced fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features:
27
+ This is a customized fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features and should only be used for special needs:
28
28
 
29
29
  - **Switch event support** - Receive button press/release events from Casambi switches
30
30
  - **Improved relay status handling** - Better support for relay units
@@ -1,9 +1,9 @@
1
1
  ![PyPI](https://img.shields.io/pypi/v/casambi-bt-revamped)
2
2
  [![Discord](https://img.shields.io/discord/1186445089317326888)](https://discord.gg/jgZVugfx)
3
3
 
4
- # Casambi Bluetooth Revamped - Enhanced Python library for Casambi networks
4
+ # Casambi Bluetooth Revamped - Python library for Casambi networks
5
5
 
6
- This is an enhanced fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features:
6
+ This is a customized fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features and should only be used for special needs:
7
7
 
8
8
  - **Switch event support** - Receive button press/release events from Casambi switches
9
9
  - **Improved relay status handling** - Better support for relay units
@@ -1,9 +1,9 @@
1
1
  [metadata]
2
2
  name = casambi-bt-revamped
3
- version = 0.3.9
3
+ version = 0.3.11
4
4
  author = rankjie
5
5
  author_email = rankjie@gmail.com
6
- description = Enhanced Casambi Bluetooth client library with switch event support
6
+ description = Forked Casambi Bluetooth client library with switch event support, use original if no special need. https://github.com/lkempf/casambi-bt
7
7
  long_description = file: README.md
8
8
  long_description_content_type = text/markdown
9
9
  url = https://github.com/rankjie/casambi-bt
@@ -19,11 +19,11 @@ package_dir =
19
19
  packages = find:
20
20
  python_requires = >=3.11
21
21
  install_requires =
22
- bleak>=2.1.0
22
+ bleak>=0.22,!=2.0.0
23
23
  cryptography>=40.0.0
24
24
  httpx>=0.25
25
25
  bleak_retry_connector >= 3.6.0
26
- aiopath==0.7.*
26
+ anyio>=4.10.0
27
27
 
28
28
  [options.packages.find]
29
29
  where = src
@@ -6,28 +6,28 @@ import shutil
6
6
  from types import TracebackType
7
7
  from typing import Final
8
8
 
9
- from aiopath import AsyncPath # type: ignore
9
+ from anyio import Path
10
10
 
11
11
  _LOGGER = logging.getLogger(__name__)
12
12
 
13
- CACHE_PATH_DEFAULT: Final = AsyncPath(os.getcwd()) / "casambi-bt-store"
13
+ CACHE_PATH_DEFAULT: Final = Path(os.getcwd()) / "casambi-bt-store"
14
14
  CACHE_VERSION: Final = 2
15
15
 
16
- # We need a global lock since there could be multiple Caambi instances
16
+ # We need a global lock since there could be multiple Casambi instances
17
17
  # with their own cache instances pointing to the same folder.
18
18
  _cacheLock = asyncio.Lock()
19
19
 
20
20
 
21
- def _blocking_delete(path: AsyncPath) -> None:
21
+ def _blocking_delete(path: Path) -> None:
22
22
  shutil.rmtree(pathlib.Path(path))
23
23
 
24
24
 
25
25
  class Cache:
26
- def __init__(self, cachePath: AsyncPath | pathlib.Path | None) -> None:
26
+ def __init__(self, cachePath: Path | pathlib.Path | None) -> None:
27
27
  if cachePath is None:
28
28
  self._cachePath = CACHE_PATH_DEFAULT
29
- elif not isinstance(cachePath, AsyncPath):
30
- self._cachePath = AsyncPath(cachePath)
29
+ elif not isinstance(cachePath, Path):
30
+ self._cachePath = Path(cachePath)
31
31
  else:
32
32
  self._cachePath = cachePath
33
33
 
@@ -69,7 +69,7 @@ class Cache:
69
69
  await self._cachePath.mkdir(mode=0o700)
70
70
  await self._cacheVersionFile.write_text(str(CACHE_VERSION))
71
71
 
72
- async def __aenter__(self) -> AsyncPath:
72
+ async def __aenter__(self) -> Path:
73
73
  await _cacheLock.acquire()
74
74
 
75
75
  if self._uuid is None:
@@ -78,7 +78,7 @@ class Cache:
78
78
  try:
79
79
  await self._ensureCacheValid()
80
80
 
81
- cacheDir = AsyncPath(self._cachePath / self._uuid)
81
+ cacheDir = Path(self._cachePath / self._uuid)
82
82
  if not await cacheDir.exists():
83
83
  _LOGGER.debug("Creating cache entry for id %s", self._uuid)
84
84
  await cacheDir.mkdir()
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: casambi-bt-revamped
3
- Version: 0.3.9
4
- Summary: Enhanced Casambi Bluetooth client library with switch event support
3
+ Version: 0.3.11
4
+ Summary: Forked Casambi Bluetooth client library with switch event support, use original if no special need. https://github.com/lkempf/casambi-bt
5
5
  Home-page: https://github.com/rankjie/casambi-bt
6
6
  Author: rankjie
7
7
  Author-email: rankjie@gmail.com
@@ -12,19 +12,19 @@ Classifier: Development Status :: 4 - Beta
12
12
  Requires-Python: >=3.11
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: bleak>=2.1.0
15
+ Requires-Dist: bleak!=2.0.0,>=0.22
16
16
  Requires-Dist: cryptography>=40.0.0
17
17
  Requires-Dist: httpx>=0.25
18
18
  Requires-Dist: bleak_retry_connector>=3.6.0
19
- Requires-Dist: aiopath==0.7.*
19
+ Requires-Dist: anyio>=4.10.0
20
20
  Dynamic: license-file
21
21
 
22
22
  ![PyPI](https://img.shields.io/pypi/v/casambi-bt-revamped)
23
23
  [![Discord](https://img.shields.io/discord/1186445089317326888)](https://discord.gg/jgZVugfx)
24
24
 
25
- # Casambi Bluetooth Revamped - Enhanced Python library for Casambi networks
25
+ # Casambi Bluetooth Revamped - Python library for Casambi networks
26
26
 
27
- This is an enhanced fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features:
27
+ This is a customized fork of the original [casambi-bt](https://github.com/lkempf/casambi-bt) library with additional features and should only be used for special needs:
28
28
 
29
29
  - **Switch event support** - Receive button press/release events from Casambi switches
30
30
  - **Improved relay status handling** - Better support for relay units
@@ -1,5 +1,5 @@
1
- bleak>=2.1.0
1
+ bleak!=2.0.0,>=0.22
2
2
  cryptography>=40.0.0
3
3
  httpx>=0.25
4
4
  bleak_retry_connector>=3.6.0
5
- aiopath==0.7.*
5
+ anyio>=4.10.0