A Python library for interacting with Hikvision devices via ISAPI.
Project description
hikvision-isapi-utils
一个用于与海康威视 (Hikvision) 设备进行通信的 Python 库,支持同步和异步操作。
安装
pip install hikvision-isapi-utils
快速开始
同步客户端
from hikvision_isapi_utils import Client
# 创建客户端
client = Client(
ip="192.168.1.64",
username="admin",
password="your_password",
protocol="http"
)
# 发送请求
response = client._request("GET", "/ISAPI/System/deviceInfo")
print(response.text)
# 关闭客户端
client.close()
异步客户端
import asyncio
from hikvision_isapi_utils import AsyncClient
async def main():
async with AsyncClient(
ip="192.168.1.64",
username="admin",
password="your_password",
protocol="http"
) as client:
response = await client._request("GET", "/ISAPI/System/deviceInfo")
print(response.text)
# 运行异步函数
asyncio.run(main())
依赖
- Python >= 3.8
requestshttpx
许可证
本项目采用 MIT 许可证。详情请见 LICENSE 文件。
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 hikvision_isapi_utils-0.1.0.tar.gz.
File metadata
- Download URL: hikvision_isapi_utils-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c2cc04f524429be2c510f6720e672a3cbc70d451cd6bb84f746ed85011dce75
|
|
| MD5 |
e17020eeab7d07b41eee242d427bf9af
|
|
| BLAKE2b-256 |
aefbc39d9da66c2789c66aeaad92a110ac4ff73241edbe85b68f1b7300d50e15
|
File details
Details for the file hikvision_isapi_utils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hikvision_isapi_utils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d345e2f8c218550d17b0b8dacfc37d07003fab7a213b5fe1754646c0dc4b3343
|
|
| MD5 |
4fd3e9bc67695bc091249b265873db13
|
|
| BLAKE2b-256 |
1c404b17d704a23d5e11304702a16f17fb19c254b3230e9ad1c18cd448b878d9
|