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

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.9.tar.gz (24.0 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.9-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyimouapi-1.2.9.tar.gz
  • Upload date:
  • Size: 24.0 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.9.tar.gz
Algorithm Hash digest
SHA256 19fc7cac2239c981e5e34843d986d712c6aa19b9adde87474c5fef54c70149d8
MD5 e3bdd55c0a56e6f5753bcf929c063037
BLAKE2b-256 39dd69add8b71cb0855b1fe0396b77d88275dcc27867cf2c063e999702c2df21

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyimouapi-1.2.9-py3-none-any.whl
  • Upload date:
  • Size: 21.2 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 040e6b10ce02fec60a4e4c38235b76b15a448724dd4a8e260d0953e1da7116f0
MD5 dd37733824c15c0ab3a5029793c7bbd3
BLAKE2b-256 0107707e62b9a389a738eb37523fda3d0e7ab2bfbd9d5d0c0915d37479cb9bd6

See more details on using hashes here.

Provenance

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