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/channel helpers plus higher-level types for integrations (for example Home Assistant).

Package layout

Module Role
pyimouapi.openapi ImouOpenApiClient — auth, signing, token lifecycle, HTTP calls
pyimouapi.device ImouDeviceManager, ImouDevice, ImouChannel — listing, PTZ, alarms, storage, collection points (getCollection / turnCollection), and related endpoints
pyimouapi.collection_point Parsing helpers for PaaS / IoT collection point name lists
pyimouapi.push Open Platform event-push helpers: normalize payload fields, alarm vs status msgType, IoT envelope check, event-ref lookup, picture URLs (thumbUrl first, then picUrlArray / picUrlArr / picUrl)
pyimouapi.pic_decode LCOpenPicDecoder — decrypts alarm pictures you have already downloaded, through the official LCOpenSDK native libraries (linux x86-64). Also TCM detection and encrypt-key resolution. No Open Platform call, token, or CA bundle is involved
pyimouapi.ha_device ImouHaDeviceManager, ImouHaDevice, … — aggregated “device model” helpers for automation stacks (including alarm_control_panel for IoT ref 15200, feature switches, and select.collection_point when the device exposes CollectionPoint or IoT refs 21500/22000)
pyimouapi.exceptions ImouException and typed errors (connect, request, invalid credentials, …)

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 setup.py / requirements.txt:

  • aiohttp>=3.11.9,<4.0
  • simpleeval>=1.0.3

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.device.ImouDeviceManager for device operations

License

MIT — see LICENSE in this repository.

Metadata

Release files for pyimouapi 1.4.4

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

Built distribution (wheel)

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

Total release size: 123.6 kB

Release files / pyimouapi-1.4.4.tar.gz

Download URL pyimouapi-1.4.4.tar.gz
Size 77.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ab281efc56cc8d442ce65cfc6a55ffd5fe4ed46cc26062008c761a3cf172f35
BLAKE2b-256 checksum
How to use checksums
0310b241d77e4b9c4667f76d6b845ab777383c7ffafb7c53956f5c14aa8d78df
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 Oct 21, 2026.

Transparency log

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

Download URL pyimouapi-1.4.4-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8abbb14b57fd85e035d7681d0b519619df13d186e40a8d7f10ed1c6987aa4bf6
BLAKE2b-256 checksum
How to use checksums
57b8c71c5ff4da87902844eb03aeaa38362a02e18cf92dad8d9d5e066fa79e9f
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 Oct 21, 2026.

Transparency log

Security for pyimouapi 1.4.4

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-1.4.4.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 Oct 21, 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

1.4.4 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