Metadata-Version: 2.4
Name: imoo-client
Version: 0.1.2
Summary: Python client for the imoo smartwatch HTTP API
Project-URL: Repository, https://github.com/HIbingai/imoo-client
Author: ReXtc Contributors
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: cryptography>=41.0
Requires-Dist: requests>=2.28
Description-Content-Type: text/markdown

# 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

```bash
pip install imoo-client
```

## Usage

```python
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.28
- `cryptography` >= 41.0
- Python >= 3.10

## License

MIT
