Forked version of fananimi/pyzk with latest changes.
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
Release history Release notifications | RSS feed
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.2.tar.gz
(24.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyzk2-0.2-py3-none-any.whl
(32.2 kB
view details)
File details
Details for the file pyzk2-0.2.tar.gz.
File metadata
- Download URL: pyzk2-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78a0ec7bf4e544aa716fa48dc87944fc8d11c0ec05b1b24c349ce0d1e3dc772c
|
|
| MD5 |
fe0bc51d9e0dc24344f523d908010976
|
|
| BLAKE2b-256 |
8a6f71e9b99f58096563059445c276bd4728f9b8a9ec3df1ba27c269d3e02605
|
File details
Details for the file pyzk2-0.2-py3-none-any.whl.
File metadata
- Download URL: pyzk2-0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20e3a125479401a98842fbaf1ae2a3bf19f17c0221d83a50798847c1171fdf2f
|
|
| MD5 |
91534ee8f6a8c1d27f03547164b46d4b
|
|
| BLAKE2b-256 |
d3fb3600850f456a3890e5b7a82b9aecc1f9d7a88ccb30890c861a6e59d118ad
|