pynfc¶
Libnfc and libfreefare with just enough of the interals to actually be usable.
- class pynfc.Desfire(target: int)¶
Specialize for DesFire devices.
- auth(key: bytes, keyno: int = 0) bool ¶
Authenticate.
- class pynfc.Mifare(target: int)¶
Specialize for Mifare devices.
- auth(data: bytes, sector: int = 1, akey: bool = True) bool ¶
Authenticate.
- class pynfc.Nfc(device: Optional[str] = None, log_level: Optional[str] = None)¶
A slightly pythonic interface.
- class pynfc.Target(target: int)¶
Target devices that may enter our field.
- property type¶
Type of this device.
- property uid¶
UID of the device.
(can vary in length based on type) (do not rely on them being absolutly unique)
- class pynfc.Timeout(timeoutlength: Optional[int] = 1)¶
Watchdog to timeout functions.
- exception pynfc.TimeoutException¶
Timeout Exception.
- pynfc.classic_auth(*args: Any, **kwargs: Any) Any ¶
Wrap function.
- pynfc.classic_connect(*args: Any, **kwargs: Any) Any ¶
Wrap function.
- pynfc.desfire_auth(*args: Any, **kwargs: Any) Any ¶
Wrap function.
- pynfc.desfire_connect(*args: Any, **kwargs: Any) Any ¶
Wrap function.
- pynfc.poll(*args: Any, **kwargs: Any) Any ¶
Wrap function.
- pynfc.tag_new(*args: Any, **kwargs: Any) Any ¶
Wrap function.