Skip to main content

hikvision-isapi-utils

一个用于与海康威视 (Hikvision) 设备进行通信的 Python 库,支持同步和异步操作。

重要提示 (Important Notice)

本项目仅为技术交流与学习目的而创建。

  • API 文档来源: 海康威视 ISAPI 协议文档是海康威视公司的专有财产。所有开发者必须通过官方渠道 海康开放平台 申请并获取正式的 API 文档。
  • 法律风险: 任何通过非官方渠道(例如网络搜索到的直接链接)获取和使用 ISAPI 文档的行为,均可能构成对海康威视知识产权的侵犯。使用此类非官方文档所产生的一切风险和责任,由使用者自行承担。
  • 项目免责: 本项目作者及贡献者不提供任何官方支持,也不对因使用本库或非官方文档而导致的任何设备故障、数据丢失或法律纠纷负责。

安装

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/capabilities")
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/capabilities")
        print(response.text)

# 运行异步函数
asyncio.run(main())

依赖

  • Python >= 3.8
  • requests
  • httpx

许可证

本项目采用 MIT 许可证。详情请见 LICENSE 文件。

Metadata

Release files for hikvision-isapi-utils 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hikvision-isapi-utils 0.1.1
File Size Uploaded Provenance Actions
hikvision_isapi_utils-0.1.1.tar.gz 5.7 kB With provenance Details for hikvision_isapi_utils-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hikvision-isapi-utils 0.1.1
File Interpreter ABI Platform Actions
hikvision_isapi_utils-0.1.1-py3-none-any.whl Python 3 none any Details for hikvision_isapi_utils-0.1.1-py3-none-any.whl

Total release size: 13.6 kB

Release files / hikvision_isapi_utils-0.1.1.tar.gz

Download URL hikvision_isapi_utils-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dc82e793e06fc8695017725ee1c57fb5c178b23f3d42e7f9e6a1c2f700594573
BLAKE2b-256 checksum
How to use checksums
58a0a497c7053a164eeab0f11bcb5242638d7bf57ee0e1cdcb17e2505f46b8a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2025.

Transparency log

Release files / hikvision_isapi_utils-0.1.1-py3-none-any.whl

Download URL hikvision_isapi_utils-0.1.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5770103b78c67d283c418f34ce4a8f0a4c0724642680ae1c0f4e70d515fff0f
BLAKE2b-256 checksum
How to use checksums
42c4293a0c340396609e63054b599f4a1f9bd5ef33b4f2cdee05de4497785736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2025.

Transparency log

Security for hikvision-isapi-utils 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hikvision_isapi_utils-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page