release app version 0.2
This commit is contained in:
parent
43a9732fbc
commit
eb0e87da0a
@ -56,9 +56,9 @@ author = u'Fanani M. Ihsan'
|
|||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = u'0.1'
|
version = u'0.2'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = u'0.1'
|
release = u'0.2'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pyzk',
|
name='pyzk',
|
||||||
version='0.1',
|
version='0.2',
|
||||||
description='an unofficial library of zksoftware the fingerprint attendance machine.',
|
description='an unofficial library of zksoftware the fingerprint attendance machine.',
|
||||||
url='https://github.com/fananimi/pyzk',
|
url='https://github.com/fananimi/pyzk',
|
||||||
author='Fanani M. Ihsan',
|
author='Fanani M. Ihsan',
|
||||||
|
12
zk/base.py
12
zk/base.py
@ -131,6 +131,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
disable (lock) connected device, make sure no activity when process run
|
disable (lock) connected device, make sure no activity when process run
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_DISABLEDEVICE
|
command = const.CMD_DISABLEDEVICE
|
||||||
command_string = ''
|
command_string = ''
|
||||||
checksum = 0
|
checksum = 0
|
||||||
@ -148,6 +149,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
re-enable connected device
|
re-enable connected device
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_ENABLEDEVICE
|
command = const.CMD_ENABLEDEVICE
|
||||||
command_string = ''
|
command_string = ''
|
||||||
checksum = 0
|
checksum = 0
|
||||||
@ -165,6 +167,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
get firmware version name
|
get firmware version name
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_GET_VERSION
|
command = const.CMD_GET_VERSION
|
||||||
command_string = ''
|
command_string = ''
|
||||||
checksum = 0
|
checksum = 0
|
||||||
@ -219,6 +222,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
play test voice
|
play test voice
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_TESTVOICE
|
command = const.CMD_TESTVOICE
|
||||||
command_string = ''
|
command_string = ''
|
||||||
checksum = 0
|
checksum = 0
|
||||||
@ -236,6 +240,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
create or update user by uid
|
create or update user by uid
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_USER_WRQ
|
command = const.CMD_USER_WRQ
|
||||||
|
|
||||||
uid = chr(uid % 256) + chr(uid >> 8)
|
uid = chr(uid % 256) + chr(uid >> 8)
|
||||||
@ -259,6 +264,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
get all users
|
get all users
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_USERTEMP_RRQ
|
command = const.CMD_USERTEMP_RRQ
|
||||||
command_string = ''
|
command_string = ''
|
||||||
checksum = 0
|
checksum = 0
|
||||||
@ -313,6 +319,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
cancel capturing finger
|
cancel capturing finger
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_CANCELCAPTURE
|
command = const.CMD_CANCELCAPTURE
|
||||||
cmd_response = self.__send_command(command=command)
|
cmd_response = self.__send_command(command=command)
|
||||||
print cmd_response
|
print cmd_response
|
||||||
@ -321,6 +328,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
verify finger
|
verify finger
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_STARTVERIFY
|
command = const.CMD_STARTVERIFY
|
||||||
# uid = chr(uid % 256) + chr(uid >> 8)
|
# uid = chr(uid % 256) + chr(uid >> 8)
|
||||||
cmd_response = self.__send_command(command=command)
|
cmd_response = self.__send_command(command=command)
|
||||||
@ -330,6 +338,7 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
start enroll user
|
start enroll user
|
||||||
'''
|
'''
|
||||||
|
|
||||||
command = const.CMD_STARTENROLL
|
command = const.CMD_STARTENROLL
|
||||||
uid = chr(uid % 256) + chr(uid >> 8)
|
uid = chr(uid % 256) + chr(uid >> 8)
|
||||||
command_string = pack('2s', uid)
|
command_string = pack('2s', uid)
|
||||||
@ -340,16 +349,19 @@ class ZK(object):
|
|||||||
'''
|
'''
|
||||||
Not implemented yet
|
Not implemented yet
|
||||||
'''
|
'''
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_attendance(self):
|
def get_attendance(self):
|
||||||
'''
|
'''
|
||||||
Not implemented yet
|
Not implemented yet
|
||||||
'''
|
'''
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def clear_attendance(self):
|
def clear_attendance(self):
|
||||||
'''
|
'''
|
||||||
Not implemented yet
|
Not implemented yet
|
||||||
'''
|
'''
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user