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="Your innermodel",
    soft_version="Your Software Version",
    encrypt_key="keyId:aeskey: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.3.tar.gz (9.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.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imoo_client-0.1.3.tar.gz
  • Upload date:
  • Size: 9.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.3.tar.gz
Algorithm Hash digest
SHA256 a917897d82e7fed83ae269a7710b016a03ac24f87860fec1d2d62d36ff6023ec
MD5 4ea0c03358234447a93c51666602b041
BLAKE2b-256 ab934a96a3ed5ce7ecd8038c908b58b692f606541a03e59973e01dd6fd4f6977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imoo_client-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7b11ebce41f92c7df0d5b178f86a90b9cf3887c222d4ba5ec99fd43ccbd2c8
MD5 d9f94339a88204e8a63ef7753170a4da
BLAKE2b-256 0842359d9811e98fcbc0b4abedfe0e93a8b5e875709c8ce6c281838abf746018

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