Skip to content

parafoxia/python-touch-id

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-touch-id PEP8

Access the Touch ID sensor from Python

Install

$ pip install git+https://github.com/parafoxia/python-touch-id

Usage

import touchid

success = touchid.authenticate()

API

touchid.is_available() -> bool

Check whether Touch ID is available on the current machine

touchid.authenticate(reason: str = 'authenticate via Touch ID') -> bool

Authenticate via Touch ID.
This method returns a bool determining whether the Touch ID authentication completed successfully. If the user cancels the authentication, this method will raise an Exception

License

MIT © Lukas Kollmer

About

Access the Touch-ID sensor from Python

Resources

Stars

Watchers

Forks

Languages

  • Python 100.0%