Skip to main content

The client for HIKVISION cameras, DVR

Project description

LIbrary for Hikvision Cameras
===================


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

----------

Install
-------------

```
pip install hikvisionapi
```

Example
-------------


```python
from hikvisionapi import client

api = Client('http://192.168.0.2', 'admin', 'admin')
response = api.System.deviceInfo(method='get', json=True)
```

```json
response = {
"DeviceInfo": {
"@version": "1.0", "@xmlns": "http://www.hikvision.com/ver20/XMLSchema",
"deviceName": "HIKVISION"
}
```
You can get responseras text:

```python
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:

```python
xml = api.System.deviceInfo(method='get', json=False)
api.System.deviceInfo(method='put', data=xml, json=False)
```

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.tar.gz (2.5 kB view hashes)

Uploaded Source

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