pypetkitapi 1.16.3__tar.gz → 1.16.5__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.
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/PKG-INFO +32 -8
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/README.md +31 -7
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/__init__.py +1 -1
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/client.py +8 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/const.py +3 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/litter_container.py +1 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pyproject.toml +2 -2
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/LICENSE +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/bluetooth.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/command.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/containers.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/exceptions.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/feeder_container.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/media.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/purifier_container.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/py.typed +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/schedule_container.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/utils.py +0 -0
- {pypetkitapi-1.16.3 → pypetkitapi-1.16.5}/pypetkitapi/water_fountain_container.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: pypetkitapi
|
3
|
-
Version: 1.16.
|
3
|
+
Version: 1.16.5
|
4
4
|
Summary: Python client for PetKit API
|
5
5
|
License: MIT
|
6
6
|
Author: Jezza34000
|
@@ -58,11 +58,11 @@ Description-Content-Type: text/markdown
|
|
58
58
|
|
59
59
|
---
|
60
60
|
|
61
|
-
## Overview
|
61
|
+
## ℹ️ Overview
|
62
62
|
|
63
63
|
PetKit Client is a Python library for interacting with the PetKit API. It allows you to manage your PetKit devices, retrieve account data, and control devices through the API.
|
64
64
|
|
65
|
-
## Features
|
65
|
+
## 🚀 Features
|
66
66
|
|
67
67
|
- Login and session management
|
68
68
|
- Fetch account and device data
|
@@ -70,7 +70,7 @@ PetKit Client is a Python library for interacting with the PetKit API. It allows
|
|
70
70
|
- Fetch images & videos produced by devices
|
71
71
|
> Pictures are available **with or without** Care+ subscription, Videos are only available **with** Care+ subscription
|
72
72
|
|
73
|
-
## Installation
|
73
|
+
## ⬇️ Installation
|
74
74
|
|
75
75
|
Install the library using pip:
|
76
76
|
|
@@ -78,7 +78,7 @@ Install the library using pip:
|
|
78
78
|
pip install pypetkitapi
|
79
79
|
```
|
80
80
|
|
81
|
-
## Usage Example:
|
81
|
+
## 💡 Usage Example:
|
82
82
|
|
83
83
|
Here is a simple example of how to use the library to interact with the PetKit API \
|
84
84
|
This example is not an exhaustive list of all the features available in the library.
|
@@ -137,17 +137,41 @@ if __name__ == "__main__":
|
|
137
137
|
asyncio.run(main())
|
138
138
|
```
|
139
139
|
|
140
|
-
## More example usage
|
140
|
+
## 💡 More example usage
|
141
141
|
|
142
142
|
Check at the usage in the Home Assistant integration : [here](https://github.com/Jezza34000/homeassistant_petkit)
|
143
143
|
|
144
|
-
##
|
144
|
+
## ☑️ Supported Devices
|
145
|
+
|
146
|
+
| **Category** | **Name** | **Device** |
|
147
|
+
| ---------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
148
|
+
| **🍗 Feeders** | ✅ Fresh Element | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/feeder.png" width="40"/></a> |
|
149
|
+
| | ✅ Fresh Element Mini Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/feedermini.png" width="40"/></a> |
|
150
|
+
| | ✅ Fresh Element Infinity | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d3.png" width="40"/></a> |
|
151
|
+
| | ✅ Fresh Element Solo | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4.png" width="40"/></a> |
|
152
|
+
| | ✅ Fresh Element Gemini | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4s.png" width="40"/></a> |
|
153
|
+
| | ✅ YumShare Solo | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4h.png" width="40"/></a> |
|
154
|
+
| | ✅ YumShare Dual-hopper | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4sh.png" width="40"/></a> |
|
155
|
+
| **🚽 Litters** | ✅ PuraX | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t3.png" width="40"/></a> |
|
156
|
+
| | ✅ PuraMax | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t4.1.png" width="40"/></a> |
|
157
|
+
| | ✅ PuraMax 2 | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t4.png" width="40"/></a> |
|
158
|
+
| | ✅ Purobot Max Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t5.png" width="40"/></a> |
|
159
|
+
| | ✅ Purobot Ultra | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t6.png" width="40"/></a> |
|
160
|
+
| **⛲ Fountains** | ✅ Eversweet Solo 2 | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/5w5.png" width="40"/></a> |
|
161
|
+
| | ✅ Eversweet 3 Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/4w5.png" width="40"/></a> |
|
162
|
+
| | ✅ Eversweet 3 Pro UVC | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/6w5.png" width="40"/></a> |
|
163
|
+
| | ✅ Eversweet 5 Mini | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/2w5.png" width="40"/></a> |
|
164
|
+
| | ✅ Eversweet Max | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/ctw3.png" width="40"/></a> |
|
165
|
+
| **🧴 Purifiers** | ✅ Air Magicube | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/k2.png" width="40"/></a> |
|
166
|
+
| | ✅ Air Smart Spray | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/k3.png" width="40"/></a> |
|
167
|
+
|
168
|
+
## 🛟 Help and Support
|
145
169
|
|
146
170
|
Developers? Want to help? Join us on our Discord channel dedicated to developers and contributors.
|
147
171
|
|
148
172
|
[![Discord][discord-shield]][discord]
|
149
173
|
|
150
|
-
## Contributing
|
174
|
+
## 👨💻 Contributing
|
151
175
|
|
152
176
|
Contributions are welcome!\
|
153
177
|
Please open an issue or submit a pull request.
|
@@ -37,11 +37,11 @@
|
|
37
37
|
|
38
38
|
---
|
39
39
|
|
40
|
-
## Overview
|
40
|
+
## ℹ️ Overview
|
41
41
|
|
42
42
|
PetKit Client is a Python library for interacting with the PetKit API. It allows you to manage your PetKit devices, retrieve account data, and control devices through the API.
|
43
43
|
|
44
|
-
## Features
|
44
|
+
## 🚀 Features
|
45
45
|
|
46
46
|
- Login and session management
|
47
47
|
- Fetch account and device data
|
@@ -49,7 +49,7 @@ PetKit Client is a Python library for interacting with the PetKit API. It allows
|
|
49
49
|
- Fetch images & videos produced by devices
|
50
50
|
> Pictures are available **with or without** Care+ subscription, Videos are only available **with** Care+ subscription
|
51
51
|
|
52
|
-
## Installation
|
52
|
+
## ⬇️ Installation
|
53
53
|
|
54
54
|
Install the library using pip:
|
55
55
|
|
@@ -57,7 +57,7 @@ Install the library using pip:
|
|
57
57
|
pip install pypetkitapi
|
58
58
|
```
|
59
59
|
|
60
|
-
## Usage Example:
|
60
|
+
## 💡 Usage Example:
|
61
61
|
|
62
62
|
Here is a simple example of how to use the library to interact with the PetKit API \
|
63
63
|
This example is not an exhaustive list of all the features available in the library.
|
@@ -116,17 +116,41 @@ if __name__ == "__main__":
|
|
116
116
|
asyncio.run(main())
|
117
117
|
```
|
118
118
|
|
119
|
-
## More example usage
|
119
|
+
## 💡 More example usage
|
120
120
|
|
121
121
|
Check at the usage in the Home Assistant integration : [here](https://github.com/Jezza34000/homeassistant_petkit)
|
122
122
|
|
123
|
-
##
|
123
|
+
## ☑️ Supported Devices
|
124
|
+
|
125
|
+
| **Category** | **Name** | **Device** |
|
126
|
+
| ---------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
127
|
+
| **🍗 Feeders** | ✅ Fresh Element | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/feeder.png" width="40"/></a> |
|
128
|
+
| | ✅ Fresh Element Mini Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/feedermini.png" width="40"/></a> |
|
129
|
+
| | ✅ Fresh Element Infinity | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d3.png" width="40"/></a> |
|
130
|
+
| | ✅ Fresh Element Solo | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4.png" width="40"/></a> |
|
131
|
+
| | ✅ Fresh Element Gemini | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4s.png" width="40"/></a> |
|
132
|
+
| | ✅ YumShare Solo | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4h.png" width="40"/></a> |
|
133
|
+
| | ✅ YumShare Dual-hopper | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/d4sh.png" width="40"/></a> |
|
134
|
+
| **🚽 Litters** | ✅ PuraX | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t3.png" width="40"/></a> |
|
135
|
+
| | ✅ PuraMax | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t4.1.png" width="40"/></a> |
|
136
|
+
| | ✅ PuraMax 2 | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t4.png" width="40"/></a> |
|
137
|
+
| | ✅ Purobot Max Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t5.png" width="40"/></a> |
|
138
|
+
| | ✅ Purobot Ultra | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/t6.png" width="40"/></a> |
|
139
|
+
| **⛲ Fountains** | ✅ Eversweet Solo 2 | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/5w5.png" width="40"/></a> |
|
140
|
+
| | ✅ Eversweet 3 Pro | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/4w5.png" width="40"/></a> |
|
141
|
+
| | ✅ Eversweet 3 Pro UVC | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/6w5.png" width="40"/></a> |
|
142
|
+
| | ✅ Eversweet 5 Mini | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/2w5.png" width="40"/></a> |
|
143
|
+
| | ✅ Eversweet Max | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/ctw3.png" width="40"/></a> |
|
144
|
+
| **🧴 Purifiers** | ✅ Air Magicube | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/k2.png" width="40"/></a> |
|
145
|
+
| | ✅ Air Smart Spray | <a href=""><img src="https://raw.githubusercontent.com/Jezza34000/homeassistant_petkit/refs/heads/main/images/devices/k3.png" width="40"/></a> |
|
146
|
+
|
147
|
+
## 🛟 Help and Support
|
124
148
|
|
125
149
|
Developers? Want to help? Join us on our Discord channel dedicated to developers and contributors.
|
126
150
|
|
127
151
|
[![Discord][discord-shield]][discord]
|
128
152
|
|
129
|
-
## Contributing
|
153
|
+
## 👨💻 Contributing
|
130
154
|
|
131
155
|
Contributions are welcome!\
|
132
156
|
Please open an issue or submit a pull request.
|
@@ -16,6 +16,8 @@ from pypetkitapi.bluetooth import BluetoothManager
|
|
16
16
|
from pypetkitapi.command import ACTIONS_MAP
|
17
17
|
from pypetkitapi.const import (
|
18
18
|
CLIENT_NFO,
|
19
|
+
DEFAULT_COUNTRY,
|
20
|
+
DEFAULT_TZ,
|
19
21
|
DEVICE_DATA,
|
20
22
|
DEVICE_RECORDS,
|
21
23
|
DEVICE_STATS,
|
@@ -91,6 +93,12 @@ class PetKitClient:
|
|
91
93
|
session: aiohttp.ClientSession | None = None,
|
92
94
|
) -> None:
|
93
95
|
"""Initialize the PetKit Client."""
|
96
|
+
|
97
|
+
if region is None or not region.strip():
|
98
|
+
region = DEFAULT_COUNTRY
|
99
|
+
if timezone is None or not timezone.strip():
|
100
|
+
timezone = DEFAULT_TZ
|
101
|
+
|
94
102
|
self.username = username
|
95
103
|
self.password = password
|
96
104
|
self.region = region.lower()
|
@@ -83,6 +83,7 @@ class SettingsLitter(BaseModel):
|
|
83
83
|
pet_notify: int | None = Field(None, alias="petNotify")
|
84
84
|
pre_live: int | None = Field(None, alias="preLive")
|
85
85
|
relate_k3_switch: int | None = Field(None, alias="relateK3Switch")
|
86
|
+
sand_saving: int | None = Field(None, alias="sandSaving")
|
86
87
|
sand_type: int | None = Field(None, alias="sandType")
|
87
88
|
soft_mode: int | None = Field(None, alias="softMode")
|
88
89
|
spray_notify: int | None = Field(None, alias="sprayNotify")
|
@@ -186,7 +186,7 @@ build-backend = "poetry.core.masonry.api"
|
|
186
186
|
|
187
187
|
[tool.poetry]
|
188
188
|
name = "pypetkitapi"
|
189
|
-
version = "1.16.
|
189
|
+
version = "1.16.5"
|
190
190
|
description = "Python client for PetKit API"
|
191
191
|
authors = ["Jezza34000 <info@mail.com>"]
|
192
192
|
readme = "README.md"
|
@@ -208,7 +208,7 @@ ruff = "^0.8.1"
|
|
208
208
|
types-aiofiles = "^24.1.0.20240626"
|
209
209
|
|
210
210
|
[tool.bumpver]
|
211
|
-
current_version = "1.16.
|
211
|
+
current_version = "1.16.5"
|
212
212
|
version_pattern = "MAJOR.MINOR.PATCH"
|
213
213
|
commit_message = "bump version {old_version} -> {new_version}"
|
214
214
|
tag_message = "{new_version}"
|
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
|