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.1 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.1

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.1
File Size Uploaded Provenance Actions
pyimouapi-2.0.1.tar.gz 125.4 kB With provenance Details for pyimouapi-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 205.6 kB

Release files / pyimouapi-2.0.1.tar.gz

Download URL pyimouapi-2.0.1.tar.gz
Size 125.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2f0e7ce378562a9a30cc5e0d390ff365680fe94cba2e85088c0d3dd6d2b0797d
BLAKE2b-256 checksum
How to use checksums
898d45aa90dbcc6c6af001881e7d666e30860fcb510f834d1dde1c7bdec9b3fc
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.1-py3-none-any.whl

Download URL pyimouapi-2.0.1-py3-none-any.whl
Size 80.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e55f266fe13225ca822503bb7775f2407b273befdeae5b2e1e6bd934bb4ec3a
BLAKE2b-256 checksum
How to use checksums
407eca96066ab8ccd695487398bdac2ddd236a77a41c0b845074f9deafdb778a
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.1

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.1.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.1 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