Skip to main content

The client for HIKVISION cameras, DVR

Project description

Simple and easy to use library for working with video equipment companies Hikvision


Install

pip install hikvisionapi

Examples

from hikvision import Client

api = Client('http://192.168.0.2', 'admin', 'admin')
response = api.System.deviceInfo(method='get', present='json')
response = {
    "DeviceInfo": {
    "@version": "1.0", "@xmlns": "http://www.hikvision.com/ver20/XMLSchema",
    "deviceName": "HIKVISION"
}

You can get response as text:

response = api.System.deviceInfo(method='get', present='text')
response = '<?xml version="1.0" encoding="UTF-8" ?>
<DeviceInfo version="1.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<deviceName>HIKVISION</deviceName>
</DeviceInfo>'

By default response as dict:

response = api.System.deviceInfo(method='get')
response = {'DeviceInfo': {'deviceName': 'HIKVISION'}}

<ID> prefix

For the numbering of channels using at:

api.System.Video.inputs.channels[1].motionDetection(method='get')

url path:

'System/Video/inputs/channels/1/motionDetection'

More examples:

xml = api.System.deviceInfo(method='get', present='text')
api.System.deviceInfo(method='put', data=xml)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hikvisionapi-0.1.7.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

hikvisionapi-0.1.7-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page