NFC Data Exchange Format (NDEF) decoder and encoder for Python. Version 0.3.3, low release cadence. Supports creation, parsing, and serialization of NDEF messages used in NFC tags and peer-to-peer communication.
pip install ndeflibNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an NDEF message with a text record, encode to bytes, then decode back.
Use 'import ndef' or 'from ndef import ...' instead of 'import ndeflib'.
Use create_record_with_type from ndef.rec tools or use ndef.make functions.
Use 'for record in message:' or convert to list with list(message).
Check record.type and handle payload accordingly. Use record.data.decode('utf-8') for text records if needed.No dependency data recorded yet.