devenv & fingies
This commit is contained in:
parent
2b170dbae4
commit
14b14f7842
9 changed files with 174 additions and 105 deletions
19
extras/fprintclear.py
Executable file
19
extras/fprintclear.py
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env -S nix-shell -p gobject-introspection libfprint gusb 'python3.withPackages (p: with p; [pygobject3])' --run python3
|
||||
|
||||
import gi
|
||||
gi.require_version('FPrint', '2.0')
|
||||
from gi.repository import FPrint
|
||||
|
||||
ctx = FPrint.Context()
|
||||
|
||||
for dev in ctx.get_devices():
|
||||
print(dev)
|
||||
print(dev.get_driver())
|
||||
print(dev.props.device_id);
|
||||
|
||||
dev.open_sync()
|
||||
|
||||
dev.clear_storage_sync()
|
||||
print("All prints deleted.")
|
||||
|
||||
dev.close_sync()
|
||||
Loading…
Add table
Add a link
Reference in a new issue