ZK Soap Python Library
A Python Library For Manage Data From Fingerprint Machine with SOAP Protocol
Features
- Get Attendance Log with DateRange
- Get User Information
Requirements
- Python version 3.6 or higher
- Fingerprint Machine Support ZK Web Service
Easy Installation
Install with pip
To install with pip, simply require the
latest version of this package.
python -m pip install zksoap
Quick Start
Just pass your IP, Port and Comkey :
- Get Attendance
# reference the ZK Soap PHP namespace
from zksoap import Fingerprint
# initial
machine = Fingerprint('192.168.1.175', '80', '123456')
# get machine status
print("Machine Status : "+machine.getStatus()) # connected | disconnected
# get all log data
print(machine.getAttendance()) # return List of Attendance Log
# get all log data with date
print(machine.getAttendance('all', '2022-05-01')) # return List of Attendance Log
# get all log data with date range
print(machine.getAttendance('all', '2022-05-01', '2022-05-10')) # return List of Attendance Log
# get specific pin log data
print(machine.getAttendance('1')) # return List of Attendance Log
# OR List
print(machine.getAttendance(['1', '2'])) # return List of Attendance Log
# get exported json format
user_attendance_data = machine.getAttendance()
json_data = json.dumps(user_attendance_data, cls=UserAttendanceEncoder, indent=4)
file_path = 'user_attendance2.json'
with open(file_path, 'w') as file:
file.write(json_data)
print(f"JSON data for user attendance saved to {file_path}")
- Get User Information
# reference the ZK Soap PHP namespace
from zksoap import Fingerprint
# initial
machine = Fingerprint('192.168.1.175', '80', '123456')
# get machine status
print("Machine Status : "+machine.getStatus()) # connected | disconnected
# get all user data
print(machine.getUserInfo()) # return List of User Info Data
# get specific pin user data
print(machine.getUserInfo('1')) # return List of User Info Data
# OR List
print(machine.getUserInfo(['1', '2'])) # return List of User Info Data
# get exported json format
decoded_data = machine.getUserInfo()
data_dict = {"data": decoded_data}
json_data = json.dumps(data_dict, indent=4, cls=UserInfoEncoder)
file_path = 'user_info2.json'
with open(file_path, 'w') as file:
file.write(json_data)
print(f"JSON data saved to {file_path}")
Changelog
- Uploading to pypi
Metadata
Release files for zksoap 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zksoap-0.0.6.tar.gz | 4.7 kB | Without provenance | Details for zksoap-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zksoap-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for zksoap-0.0.6-py3-none-any.whl |
Total release size: 9.8 kB
Release files / zksoap-0.0.6.tar.gz
| Download URL | zksoap-0.0.6.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
391647ff10b5ce066ff0e87d6980eec3d5c7698d538990415bf17a857c820782
|
|
BLAKE2b-256 checksum How to use checksums |
2f1e34b654a02604ac25f3ff6fe06cf2c93fba135c89c522af61876f9d402946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / zksoap-0.0.6-py3-none-any.whl
| Download URL | zksoap-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68668628bedd5de10afd34c0aaafe8b3595689cde7159e4ed560971207eaa2b9
|
|
BLAKE2b-256 checksum How to use checksums |
8ad40b166643e65370135cba09ed2dbe00ea50586c490e88ef0613c99e295ad5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for zksoap 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.