Skip to main content

Provides a python interface to interact with a hikvision camera

Project description

Introduction

Pypi Build Status Coverage Status

This is a very basic python module providing a basic python interface to interact with a Hikvision IP Camera

This is licensed under the MIT license.

Getting started

This module is tested against firmware 5.2.0. It may work on older versions, but that has not been tested.

For further info on the camera API's see: CGI API Guide: http://bit.ly/1RuyUuF

Development

hikvision is hosted by Github at https://github.com/fbradyirl/hikvision

CI run after commit:

tox

Install


git clone --recursive git@github.com:fbradyirl/hikvision.git
cd hikvision
# NOTE: You might need administrator privileges to install python modules.
pip install -r requirements.txt
pip install -e .

Usage

Variables:

import hikvision.api

# This will use http by default (not https)
# pass False to the digest_auth parameter of CreateDevice to fallback to basic auth
# (note that basic auth and http without ssl are inherently insecure)
# more recent hikvision firmwares default to turning basic auth off
# (and that's a good idea for security)
hik_camera = hikvision.api.CreateDevice('192.168.2.5', username='admin', password='12345')
hik_camera.enable_motion_detection()
hik_camera.disable_motion_detection()
hik_camera.is_motion_detection_enabled()
  • host (*Required) : This is the IP address of your Hikvision camera. Example: 192.168.1.32

  • username (*Required) : Your Hikvision camera username

  • password (*Required) : Your Hikvision camera username

History

2.0.3 (07-09-2020)

  • Updated to use travis, tox, and some other cosmetic improvements.

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

hikvision-2.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

hikvision-2.0.3-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hikvision-2.0.3.tar.gz.

File metadata

  • Download URL: hikvision-2.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

File hashes

Hashes for hikvision-2.0.3.tar.gz
Algorithm Hash digest
SHA256 85e6e174d9a0870cf142d7db6e2be4b504f3f5c1907b678d888768e68b86a646
MD5 5ab04ad3b67ef1a593e40bf59cf2f036
BLAKE2b-256 7cc69dd8b605d10f1a12ea2e5e9bb66374a05985272fbed0672452ba6eb0f0f4

See more details on using hashes here.

File details

Details for the file hikvision-2.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: hikvision-2.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

File hashes

Hashes for hikvision-2.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d326de5e8bfdf4ec84101d9bbf91dbbeb47f41b7a75c1df314dbea1487bc593c
MD5 08f9b76827ff32ad38ff8f3405dcc835
BLAKE2b-256 d480881a37489a68017195426ad11d3b84a61199da1345e1069385e462364d18

See more details on using hashes here.

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