Skip to main content

pyimouapi

Async Python client for the Imou Open Platform cloud APIs. Built on aiohttp, it handles authentication and requests, and exposes device helpers plus higher-level types for integrations (for example Home Assistant Imou Life 2.0).

  • Repository: Imou-OpenPlatform/Py-Imou-Open-Api
  • Version: Same as pyproject.toml / PyPI (pyimouapi.__version__) — 2.0.0 on the dev / release line that ships with Imou Life 2.0
  • Python: >= 3.11

What 2.0 does

Entity registration and control use Open API V2 capability ids from the device list, intersected with packaged v2_target_map.yaml. device.capability.list enriches enums, ranges, and scopes for selected devices. Select options use stable friendly keys (select_option), including night-vision starlight ↔ raw "5" and five-level volume "1"–"5".

Package layout

Module Role
pyimouapi.openapi ImouOpenApiClient — auth, signing, token lifecycle, HTTP calls
pyimouapi.device ImouDeviceManager, ImouDevice, ImouChannel — listing and related endpoints
pyimouapi.capability V2 capability list / property / service clients and configure_imou_ha_device_from_capability
pyimouapi.data Packaged v2_target_map.yaml (ha_key → V2 target_id)
pyimouapi.ha_device ImouHaDeviceManager, ImouHaDevice — aggregated device model for automation stacks
pyimouapi.select_option Friendly keys for device_volume, night_vision_mode, wide_dynamic
pyimouapi.alarm_mode Alarm panel mode friendly ↔ raw mapping
pyimouapi.push Event-push helpers: normalize fields, alarm vs status, IoT envelopes, picture URLs
pyimouapi.pic_decode LCOpenPicDecoder — decrypts alarm pictures you already downloaded (official LCOpenSDK .so, linux x86-64)
pyimouapi.play_token Play-token / encrypt-key helpers for picture decrypt
pyimouapi.cloud_record / local_record Cloud and local recording listing
pyimouapi.playback HLS / FLV playback URL helpers
pyimouapi.insight AI Insight cloud status, alarm search, daily statistics
pyimouapi.snap_detect detectDeviceSnap / deviceSnapDetect client and result parsing
pyimouapi.bulb_light Color-bulb composite property writes
pyimouapi.collection_point Collection-point name parsing
pyimouapi.exceptions ImouException and typed errors

The top-level pyimouapi package re-exports common symbols. Import submodules directly when needed, for example from pyimouapi.ha_device import ImouHaDeviceManager.

Dependencies

As declared in pyproject.toml / requirements.txt:

  • aiohttp>=3.11.9,<4.0

Install

pip install pyimouapi

From a checkout:

pip install .

Quick example (async)

from pyimouapi.openapi import ImouOpenApiClient

# host: Imou Open Platform gateway, e.g. openapi-sg.easy4ip.com
client = ImouOpenApiClient("your_app_id", "your_app_secret", "openapi-sg.easy4ip.com")
await client.async_get_token()
# Use the client with pyimouapi.ha_device.ImouHaDeviceManager for integrations

License

MIT — see LICENSE in this repository.

Metadata

Release files for pyimouapi 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyimouapi 2.0.0
File Size Uploaded Provenance Actions
pyimouapi-2.0.0.tar.gz 125.1 kB With provenance Details for pyimouapi-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyimouapi 2.0.0
File Interpreter ABI Platform Actions
pyimouapi-2.0.0-py3-none-any.whl Python 3 none any Details for pyimouapi-2.0.0-py3-none-any.whl

Total release size: 205.1 kB

Release files / pyimouapi-2.0.0.tar.gz

Download URL pyimouapi-2.0.0.tar.gz
Size 125.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9ab5c092946c858ea26cd843d448d1abd7e927834422909b18f6b1456eb2786
BLAKE2b-256 checksum
How to use checksums
81e8470d7214e96563c9b9a95d3cadd299f3dfd6591ab18269eabb62da3fd688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / pyimouapi-2.0.0-py3-none-any.whl

Download URL pyimouapi-2.0.0-py3-none-any.whl
Size 80.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a0d0832fd9429551adcc10ea6a9bdcfa92306e69a2c001f6cf14248bbee54f9
BLAKE2b-256 checksum
How to use checksums
9e58740d89939457d16bc9757e2effcecd9bba20cc7857ad63b5eeae87c8b380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for pyimouapi 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyimouapi-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page