The client for HIKVISION cameras, DVR
Project description
Simple and easy to use library for working with video equipment companies Hikvision
Examples
from hikvision import Client
api = Client('http://192.168.0.2', 'admin', 'admin')
response = api.System.deviceInfo(method='get', json=True)
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', json=False)
response = '<?xml version="1.0" encoding="UTF-8" ?>
<DeviceInfo version="1.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<deviceName>HIKVISION</deviceName>
</DeviceInfo>'
More examples:
xml = api.System.deviceInfo(method='get', json=False)
api.System.deviceInfo(method='put', data=xml, json=False)
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
hikvisionapi-0.1.3.zip
(5.6 kB
view hashes)