Python client for Suprema GSDK with included callable classes.
Project description
#Python Client for Suprema GSDK
0.1.8 - Implemented version check for Protobuf (3.20)
0.1.7 - Implemented proper logging, a GSDKlog.log file is now used instead of the standard print command.
0.1.6 - Added firmwareUpdateMulti to DeviceSvc (Needed for multiple device upgrade internally)
0.1.5 - Added OperatorSvc call so operators above 10 can be added. Supports getList, add, delete, deleteAll, addMulti, deleteMulti and deleteAllMulti
0.1.4 - Added getFinger, getFace and getCard to UserSvc.
Added getQRConfig, setQRConfig and writeQR to CardSvc()
0.1.3 - Added AuthSvc, AccessSvc, ScheduleSvc, ActionSvc and TNASvc.
Under UserSvc, added newUser, newUserCard, newUserFinger and newUserFace for ease of calling when enrolling new user info.
0.1.2 - Updated initial json file string, so import on linux works
0.1.1 - Added Readme
0.1.0 - Initial Commit
This is the pip distributable version of the Suprema GSDK Python client, which makes it easier to interact with the GSDK.
The examples from the Suprema GSDK wiki can be used, but with this package, all dependencies are handled via PIP.
The EventCode .json file and device list are also initialized automatically when importing package.
On some clients (Particularly android) the EventCode json can sometimes not be loaded. If this happens, an error will display.
You can then call supremaPython.initCodeMap(JsonFileLocation)
To check Event codes, call supremaPython.getEventString(eventCode,subCode)
To check device type, call supremaPython.deviceType[deviceCode]
##How to use the rest of the classes.
All classes that can be used are imported under the biostarPython package.
The ones currently written are:
GatewayClient,
ConnectSvc,
DeviceSvc,
FaceSvc,
FingerSvc,
StatusSvc,
UserSvc,
DisplaySvc,
AdminSvc,
WiegandSvc,
TimeSvc,
CardSvc,
EventSvc,
NetworkSvc,
ServerSvc,
SystemSvc,
DoorSvc,
RS485Svc,
AuthSvc,
AccessSvc,
ScheduleSvc,
ActionSvc,
TNASvc
OperatorSvc
With the remaining being added in a future release.
With all of these services, they are a callable class underneath the biostarPython package. An example of initial setup with the GatewayClient and ConnectSvc is below:
For all of the functions below these services, they are formated with the first letter in lowercase, so to search a device would be searchDevice(), to get info would be getInfo().
The guides on how to use these are present at the the Suprema GSDK wiki
import biostarPython as g
gateway = g.GatewayClient('127.0.0.1',4000,'ca.crt')
channel = gateway.getChannel()
connect = g.ConnectSvc(channel)
connect.searchDevice(300)
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
Built Distributions
Hashes for biostarPython-0.1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b58f55b57c1934be83ae6486f51ff3f1962dba31f780b057f5824c2c4d3e79b |
|
MD5 | 2b68595c02507458bb3aafa0eab59bfa |
|
BLAKE2b-256 | f51d31fbdfebd4c6e4f745cdb9430fb207ce4fc17d44af1b59e05e3746f00a5d |
Hashes for biostarPython-0.1.8.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4304e8a1b07bb640ba1378b1a5ff5c1d82e5538cb704e7be64314e5289929efb |
|
MD5 | e3771537f3c90d351e0125d4d7ba81f5 |
|
BLAKE2b-256 | cb68e9e077b8506a9a8aceded8e87b5ab558d6e339fe08532bd797028a487ca0 |