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.13.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.13-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hikac-0.0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 125ab60567717549e117ade554777025b756f99e36da02bdb8f51922b71405a9
MD5 72f6360e26d77f8ccd63e34f5ce227ed
BLAKE2b-256 647f88f818d5c58149e46a25108ea11c8f72714ec32dd091eee85beb63aaa930

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikac-0.0.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 1b2929d206381d2784e2b10f95e6276bc7f6b8a0bb543d0bb12da270388ca832
MD5 7f777f4a3d5b16274221c1015271e376
BLAKE2b-256 bd5c90ddcbdfc68bbcf1d4f401a6f898a6afa20598afacfba0bb3b808d23928d

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