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).
- Repository: Imou-OpenPlatform/Py-Imou-Open-Api
- Version: Same as
setup.py/ PyPI (pyimouapi.__version__) - Python:
>= 3.11
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.0simpleeval>=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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c8574e084490856d09e64ca6c75cdc0ec740edb2272d3215883e2d23826b4a
|
|
| MD5 |
c629c624d5042a3d58392e53f9f2b597
|
|
| BLAKE2b-256 |
ae79cb9eb490e4b18d8bd300e4d4cde05cd5603787406957a5a766b1a5cb4ff1
|
Provenance
The following attestation bundles were made for pyimouapi-1.2.7.tar.gz:
Publisher:
publish.yml on Imou-OpenPlatform/Py-Imou-Open-Api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyimouapi-1.2.7.tar.gz -
Subject digest:
e4c8574e084490856d09e64ca6c75cdc0ec740edb2272d3215883e2d23826b4a - Sigstore transparency entry: 1703583075
- Sigstore integration time:
-
Permalink:
Imou-OpenPlatform/Py-Imou-Open-Api@410fddb8add82cd45a017c436ef89c49dcb5cbfd -
Branch / Tag:
refs/tags/1.2.7 - Owner: https://github.com/Imou-OpenPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@410fddb8add82cd45a017c436ef89c49dcb5cbfd -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bcfaff98db5ce596a81f233d31e4555bd633c83e72c83f0b15bf88ba896db18
|
|
| MD5 |
8878e49c0d84cba085c11abcf45dd15e
|
|
| BLAKE2b-256 |
5185878e9c2edda04c51b46dcea1eae140185de576bfbb4924b0db708505ca54
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyimouapi-1.2.7-py3-none-any.whl -
Subject digest:
2bcfaff98db5ce596a81f233d31e4555bd633c83e72c83f0b15bf88ba896db18 - Sigstore transparency entry: 1703583349
- Sigstore integration time:
-
Permalink:
Imou-OpenPlatform/Py-Imou-Open-Api@410fddb8add82cd45a017c436ef89c49dcb5cbfd -
Branch / Tag:
refs/tags/1.2.7 - Owner: https://github.com/Imou-OpenPlatform
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@410fddb8add82cd45a017c436ef89c49dcb5cbfd -
Trigger Event:
push
-
Statement type: