Skip to main content

A package for imou open api

Project description

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, and related endpoints
pyimouapi.ha_device ImouHaDeviceManager, ImouHaDevice, … — aggregated “device model” helpers for automation stacks
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.

Project details


Release history Release notifications | RSS feed

This version

1.2.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyimouapi-1.2.7.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

pyimouapi-1.2.7-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file pyimouapi-1.2.7.tar.gz.

File metadata

  • Download URL: pyimouapi-1.2.7.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyimouapi-1.2.7.tar.gz
Algorithm Hash digest
SHA256 e4c8574e084490856d09e64ca6c75cdc0ec740edb2272d3215883e2d23826b4a
MD5 c629c624d5042a3d58392e53f9f2b597
BLAKE2b-256 ae79cb9eb490e4b18d8bd300e4d4cde05cd5603787406957a5a766b1a5cb4ff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimouapi-1.2.7.tar.gz:

Publisher: publish.yml on Imou-OpenPlatform/Py-Imou-Open-Api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyimouapi-1.2.7-py3-none-any.whl.

File metadata

  • Download URL: pyimouapi-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyimouapi-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2bcfaff98db5ce596a81f233d31e4555bd633c83e72c83f0b15bf88ba896db18
MD5 8878e49c0d84cba085c11abcf45dd15e
BLAKE2b-256 5185878e9c2edda04c51b46dcea1eae140185de576bfbb4924b0db708505ca54

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimouapi-1.2.7-py3-none-any.whl:

Publisher: publish.yml on Imou-OpenPlatform/Py-Imou-Open-Api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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