Python client for the imoo smartwatch HTTP API
Project description
imoo-client
Python client for the imoo (小天才) smartwatch HTTP API.
Handles the full imoo signing envelope: Base-Request-Param construction, MD5 signature (Eebbk-Sign), AES-ECB body encryption, and automatic retry on transient errors.
Install
pip install imoo-client
Usage
from imoo_client import ImooClient, HttpAccount
account = HttpAccount(
bind_number="YOUR_BIND_NUMBER",
chip_id="YOUR_CHIP_ID",
account_id="YOUR_ACCOUNT_ID",
regist_id=12345,
inner_model="XTC_Z10",
soft_version="3.2.0",
encrypt_key="keyId:1234567890abcdef:eebbkKeyValue",
)
client = ImooClient(account)
# GET request (signed, no body)
data = client.get("https://api.watch.okii.com/some/endpoint")
# POST request (signed + encrypted body)
data = client.post("https://api.watch.okii.com/some/endpoint", {"key": "value"})
Dependencies
requests>= 2.28cryptography>= 41.0- Python >= 3.10
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imoo_client-0.1.0.tar.gz
(8.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imoo_client-0.1.0.tar.gz.
File metadata
- Download URL: imoo_client-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77763a3976c863be6b3861f12d3e5c3e3003871f5279da8134cc8033177fb562
|
|
| MD5 |
671778bfda15f395df2eab13c45e7b00
|
|
| BLAKE2b-256 |
5f9b4f46126f54925cd46812350a363ef2119ada002e13f0e2342a2fd8181475
|
File details
Details for the file imoo_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imoo_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
154634ab7f6b0a6ce78c503f05a589d59705c604490117b4647317f1e84e91ab
|
|
| MD5 |
96e2b10d9f853a3d69323e4fea2f7aae
|
|
| BLAKE2b-256 |
aeede77c156b9bfd512bf5b8af0a0d13524ad7a5418fa7603cf729f5f5e6abe0
|