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

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.8.tar.gz (22.4 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.8-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyimouapi-1.2.8.tar.gz
  • Upload date:
  • Size: 22.4 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.8.tar.gz
Algorithm Hash digest
SHA256 8b50fcf35e10f2df59313d93f870375397ae46aedbe787fbf3d0f20e23af8bf9
MD5 fab55a7afe19b061328e8ac8a5325a6f
BLAKE2b-256 7490b1a3e544eda50252641c54f2758bfd04445531d92aaf8fe999ac84ccdaef

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimouapi-1.2.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: pyimouapi-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 20.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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 12d5aefd19b31898d5b776345f7effb2f33270d8b40276d717847045c51a2232
MD5 c6e181bb5f42555ed0ebf10d7c7d133a
BLAKE2b-256 dd873285ecddacf23418d1ddf745b5660339527ff2954d1c87c9cf6d949deb66

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyimouapi-1.2.8-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