Skip to main content

A hikvision access control request manager

Project description

HIKAC

This modest python package helps you to get events from HIKVISION AC terminals.

Installation

pip install hikac

Usage in FastAPI

from hikac import get_data_from_ac_event

@attandance_router.post("/attandance/face-id", include_in_schema=False)
async def listen_for_ac_event(
    req: Request,
    db: Session = ActiveSession,
):
    try:

        # use the class to collect nececary items of dict
        eventData = await get_data_from_ac_event(req)

        if eventData.attendanceStatus:

            #you can use these attributes
            #eventData.deviceIpAddress
            #eventData.attendanceStatus
            #eventData.deviceName
            #eventData.dateTime
            #eventData.employeeId
            #eventData.employeeName

            # write  your logic here

            return "success"
    except Exception as e:
        print(e.args)

How to configure Hikvision device - Soon!

Http Litening

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

hikac-0.0.15.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hikac-0.0.15-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file hikac-0.0.15.tar.gz.

File metadata

  • Download URL: hikac-0.0.15.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for hikac-0.0.15.tar.gz
Algorithm Hash digest
SHA256 dc6aa8b6aefd023256503f81291be03e4b0261a9119e7cf6eb29485d992178e9
MD5 af34653f95debbd0f1fa06fba9442d92
BLAKE2b-256 4d9deb07b4b251eb5eed1107bd69b985d8dc16dac4b5559c215228a02e51794d

See more details on using hashes here.

File details

Details for the file hikac-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: hikac-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0

File hashes

Hashes for hikac-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ecb29a28e759be42c68a0a2668827b16c35648dff5348f827edecb3a41b5d3
MD5 8c1409e352de96105e54f1cdf478e52a
BLAKE2b-256 3dada56a7efa04325a1020769c57d2e9b4556461db1043585a4aff3d99c6eb0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page