Skip to main content

hik_check

A command-line tool for Hikvision device management.

Installation

pip install hik_check

Requirements

  • Python >= 3.7
  • requests library (installed automatically)

Usage

hik_check [options]

action_push

Fetch access events from devices (or a JSON file) and re-push them to the client service.

hik_check action_push
  1. Bulk push - all events in a time range from the selected devices
  2. Single user push - same, filtered by employeeNoString
  3. Push from JSON file - analyses the file (raw device events, already-converted payloads, or hik_check backups; raw events are converted and need a device IP), then pushes

Each device event is converted to the client format and pushed:

{"ipAddress": "192.168.1.165", "dateTime": "<time>", "eventType": "AccessControllerEvent",
 "AccessControllerEvent": {"majorEventType": 5, "subEventType": 75, "employeeNoString": "...",
   "doorNo": 1, "attendanceStatus": "checkIn", "name": "...", "cardNo": "", "cardType": 1,
   "cardReaderNo": 1, "serialNo": 25, "userType": "normal", "currentVerifyMode": "...",
   "label": "Check In", "mask": "unknown", "pictureURL": "..."}}

Fields the device doesn't send are omitted (cardNo defaults to ""); temperature, face-rect and thermal fields are not forwarded.

Each mode shows a summary and asks for confirmation before pushing. Client IP, port (default 5000), major/minor filter (default 5/75 = successful access, 0/0 = all), timezone and device lists are remembered in ~/.config/hikcheck/action_push.json. Fetched events are backed up under ./hikcheck_action_push/<timestamp>/; events that fail to push are saved to failed_pushes.json in that folder and can be re-pushed with option 3.

Developer

Migara Mewantha

Metadata

Release files for hik-check 0.5.1

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

Source distribution (sdist)

Source distribution for hik-check 0.5.1
File Size Uploaded Provenance
hik_check-0.5.1.tar.gz 19.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hik-check 0.5.1
File Interpreter ABI Platform
hik_check-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.1 kB

Release files / hik_check-0.5.1.tar.gz

Download URL hik_check-0.5.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fa38a5ada1a75a670964efeb9552ec8045c730e83e81ed0aa7920afbb60c1f2f
BLAKE2b-256 checksum
How to use checksums
aa26be91979366e1e73662b88660172f2ae4de12db12e4dd58e437af5806c370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hik_check-0.5.1-py3-none-any.whl

Download URL hik_check-0.5.1-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0761f545ae064d2c45a9dba30437042ce672811895ce60dea8322fe81e9f4ca0
BLAKE2b-256 checksum
How to use checksums
2970432c106b839111690e5f125b0316e39c0cf4c07e331aa1fa6b2c54bcbb16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for hik-check 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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