Skip to main content

No project description provided

Project description

pyzk2

pyzk2 is a forked version of pyzk as the original repository is upto date but has not published a new release on PYPI. All credit to original author.

Installation

  • pip
pip install pyzk2

Basic Usage

The following is an example code block how to use pyzk2.

from pyzk2 import ZK, const

conn = None
zk = ZK('192.168.1.201', port=4370, timeout=15, password=0, force_udp=False, ommit_ping=False)
try:
    conn = zk.connect()
    print ("-- Device Information --")
    print ("   Current Time            : %s" % conn.get_time())
    print ("   Firmware Version        : %s" % conn.get_firmware_version())
    print ("   Device Name             : %s" % conn.get_device_name())
    print ("   Serial Number           : %s" % conn.get_serialnumber())
    print ("   Face Algorithm Version  : %s" % conn.get_face_version())
    print ("   Finger Algorithm        : %s" % conn.get_fp_version())
    print ("   Platform Information    : %s" % conn.get_platform())
    print ("   Users list              : %s" % conn.get_users())
    print ("   Attendance data         : %s" % conn.get_attendance())
except Exception as e:
    print ("Process terminate : {}".format(e))
finally:
    if conn:
        conn.disconnect()

Code Examples

You can find all code examples in example directory.

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

pyzk2-0.1.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

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

pyzk2-0.1-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file pyzk2-0.1.tar.gz.

File metadata

  • Download URL: pyzk2-0.1.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyzk2-0.1.tar.gz
Algorithm Hash digest
SHA256 37f2cc5abf3ac34a87eda2b64c2251c5c570d4d4956edc67883377c11fd99a1a
MD5 5901d17e619f341889925fdc904e32da
BLAKE2b-256 d866fb2ab9a1c3d46a1c7025ff6c2b92c2a977f46310274b8d3eeee83fff1fc5

See more details on using hashes here.

File details

Details for the file pyzk2-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyzk2-0.1-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyzk2-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 514302244d905e0c421f5da2fd5e30023ca10f8ccbefe5fb66551f3f6e0f90c3
MD5 31b19c1c156322957ec5749eb3a8a063
BLAKE2b-256 7ee2c8341997c44d2108fc0f8fc826accea7a5b4102cd0eb54d1c3f6fdc19d90

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