Skip to main content

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

License

MIT

Project details


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.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imoo_client-0.1.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file imoo_client-0.1.2.tar.gz.

File metadata

  • Download URL: imoo_client-0.1.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for imoo_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1ad1391503d58d3739abb2e606bc161a7aef554a188c627508448663add82b5d
MD5 8d1fca4f85a8ddd89b8a98707a9e7f63
BLAKE2b-256 3a662ae455eb9dcf8c5a640576d8d544bc3ad394372844796165b97253277dc4

See more details on using hashes here.

File details

Details for the file imoo_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: imoo_client-0.1.2-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

Hashes for imoo_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6610cce9dc8dd956e40a4b177bcf96d605c9e6d6a4969238147f399b0248fa09
MD5 514d9965d98cc0e0eb11c78585954805
BLAKE2b-256 b6d0f20c07835b1abf6174569f546c8b69c7749e6c812526980e31b49c8198a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page