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', 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>'
<ID> prefix
For the numbering of channels using a prefix starting with _
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', 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.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for hikvisionapi-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8f2caf2b07da67e8e968e38887bd901f92da9713ee8f25a618a2bb23b44598 |
|
MD5 | bd81a9b331a41c94921953b264a2bbc6 |
|
BLAKE2b-256 | 4eef6ca4c4e63ab2d26173c3e82bcf0dad31159d54c97ba310cbbebf8c7b8c21 |