forked from dnaextrim/python_zklib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
31 lines (24 loc) · 648 Bytes
/
README.txt
File metadata and controls
31 lines (24 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Python ZKLib #
ZK fingerprint Attendance Machine Library for python with a connection to the network using the UDP protocol and port 4370
## Getting started
Login as admin to attendance machine and set the ip address for example (to 192.168.0.201) and connect the machine with ethernet to your network.
```bash
pip install zklib
```
Connect to the machine
```python
import sys
import zklib
import time
import zkconst
zk = zklib.ZKLib("192.168.0.201", 4370)
ret = zk.connect()
print "connection:", ret
```
If result was
```
connection True
```
Then you are connected.
More examples on how to use the Library available in the
zktest.py file