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)

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.14.tar.gz (3.6 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.14-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hikac-0.0.14.tar.gz
  • Upload date:
  • Size: 3.6 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.14.tar.gz
Algorithm Hash digest
SHA256 e1d013763a30cdffe055e93c96bce7da4f0b5704f87c9ac98715acb60afd4733
MD5 c515c4716910a396de8d8255a8e09f74
BLAKE2b-256 4a0d91d2a0c666684959af202739a5173cf386e045c9e4fc6f13ecc3058c9f52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikac-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7f5e4db4fe73e20514c897cfb31a6b30a3f5d28f02fc398a388452b9954bbc7a
MD5 4115094e91f398ce5ae408ea12b2e1fd
BLAKE2b-256 997a87710b4dfb9aa27744d72993bd28df8edc8025053b62347e1347644199c9

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