Arvid Norlander
6a5a32d29f
Various small and easy cleanup found by inspection in PyCharm
2020-08-06 11:48:19 +02:00
Arvid Norlander
a17ad52102
Use optimise imports in PyCharm for cleanup.
...
This sorts imports into sections:
* From standard library
* From other libraries
* From the current project
Each section is sorted alphabetically.
2020-08-06 11:48:19 +02:00
Arvid Norlander
9a5b045378
Get rid of star imports.
...
These are dangerous as you will import not only the functions defined
in the other module but also all of it's imports! This makes automated
cleanups brittle.
2020-08-06 11:46:19 +02:00
Arvid Norlander
9dc0c14aed
Automated formatting with YAPF.
...
PEP8 settings are used except the low 80 column limit has be increased
to a more reasonable 100 columns.
2020-08-06 11:46:19 +02:00
Arvid Norlander
9898b5d80a
Fix some Python errors and clean up unused imports.
2020-08-03 19:34:20 +02:00
Viktor Dragomiretskyy
eca81e6677
Actually check which user was passed to VerifyStart.
2020-08-03 23:56:29 +12:00
Viktor Dragomiretskyy
75c6ddb5b3
* Roll back async changes for enroll & identify.
...
* Add a couple of tweaks to stop the sensor from crashing.
* A few more comments and TODOs
2020-07-16 23:13:46 +12:00
Viktor Dragomiretskyy
74598ad291
* Use single instance of a systemd service (at least for now)
...
* Switch to use logger instead of prints
* Catch signals to enforce graceful shutdown
2020-07-13 17:48:00 +12:00
Viktor Dragomiretskyy
04fa59ce1d
Add option to start service on a specific device identified by bus number and device address.
2020-07-11 17:03:27 +12:00
Viktor Dragomiretskyy
7733cac3cb
Pass both vendor and product to override autodetection. Autodetect 0090 as well.
2020-07-11 02:08:18 +12:00
Viktor Dragomiretskyy
0dbd04c972
Remove debugging info
2020-07-10 15:43:41 +12:00
Viktor Dragomiretskyy
19f49e038b
Initial setuptools packaging
2020-07-10 15:00:36 +12:00
Viktor Dragomiretskyy
189889bd77
Switch crypto deps from fastecdsa and pycrypto to cryptography
2020-07-10 01:06:39 +12:00
Viktor Dragomiretskyy
6a24f89a51
Refactor package name
2020-07-09 16:28:38 +12:00