Skip to main content

Introduction

Pypi Build Status Coverage Status

Pipeline

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.

2.0.4 (2020-12-08)

  • Switch pipeline to Github actions

Metadata

Release files for hikvision 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hikvision 2.0.4
File Size Uploaded
hikvision-2.0.4.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hikvision 2.0.4
File Interpreter ABI Platform
hikvision-2.0.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.6 kB

Release files / hikvision-2.0.4.tar.gz

Download URL hikvision-2.0.4.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3210fa860ea462bd07d33b6cbc97161cd1eb69d262c2c7591c0a03f08233613a
BLAKE2b-256 checksum
How to use checksums
a1097308a93a3f72efff0125fe011e2cc23257285823158cf5ecf34f8651ff1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release files / hikvision-2.0.4-py2.py3-none-any.whl

Download URL hikvision-2.0.4-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
92b3db979d1c7fcf5f10b8a0c26b1fd29186afaf4370f58b773af8eec51fc44a
BLAKE2b-256 checksum
How to use checksums
170c8667bd780cf9c76328740b7c98dc795c3be3788acf0cf5a163e11a13682f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

2.0.4 This release

2 release files

2.0.3

2 release files

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page