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.1.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.1.tar.gz.
File metadata
- Download URL: imoo_client-0.1.1.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 |
15161ff60ec56ad7c00e97c5fe3d55cba26c4a5cf339833beb040d90446312a0
|
|
| MD5 |
51570202d9ae47898b1eaa736895eaf8
|
|
| BLAKE2b-256 |
e477a5499d7995736d0e315817b4bbf0163f1bdd733b506719cfe5c08ab8b65d
|
File details
Details for the file imoo_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: imoo_client-0.1.1-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 |
43113025b9569a95a0475c92a9bb5961d31fd9c7c8c48acfb4e89403dfd2f452
|
|
| MD5 |
73966ea3257177da4b395486f188d0b6
|
|
| BLAKE2b-256 |
6194a7c97f14a984e9d140d8065162b635efca050cdf119bf9494d71a0b81bed
|