Ndeflib
Python package for parsing and generating NFC Data Exchange Format messages.
Install / Use
/learn @nfcpy/NdeflibREADME
=============================== Parse or generate NDEF messages
.. image:: https://badge.fury.io/py/ndeflib.svg :target: https://pypi.python.org/pypi/ndeflib :alt: Python Package
.. image:: https://readthedocs.org/projects/ndeflib/badge/?version=latest :target: http://ndeflib.readthedocs.io/en/latest/?badge=latest :alt: Latest Documentation
.. image:: https://travis-ci.org/nfcpy/ndeflib.svg?branch=master :target: https://travis-ci.org/nfcpy/ndeflib :alt: Build Status
.. image:: https://codecov.io/gh/nfcpy/ndeflib/branch/master/graph/badge.svg :target: https://codecov.io/gh/nfcpy/ndeflib :alt: Code Coverage
The ndeflib is an ISC <http://choosealicense.com/licenses/isc/>_-licensed Python package for parsing and generating NFC Data Exchange Format (NDEF) messages:
.. code-block:: pycon
import ndef hexstr = '9101085402656e48656c6c6f5101085402656e576f726c64' octets = bytearray.fromhex(hexstr) for record in ndef.message_decoder(octets): print(record) NDEF Text Record ID '' Text 'Hello' Language 'en' Encoding 'UTF-8' NDEF Text Record ID '' Text 'World' Language 'en' Encoding 'UTF-8' message = [ndef.TextRecord("Hello"), ndef.TextRecord("World")] b''.join(ndef.message_encoder(message)) == octets True
The ndeflib documentation can be found on Read the Docs <https://ndeflib.readthedocs.io/>, the code on GitHub <https://github.com/nfcpy/ndeflib>. It is continously tested <https://travis-ci.org/nfcpy/ndeflib>_ for Python 2.7 and 3.5 with pretty complete test coverage <https://codecov.io/gh/nfcpy/ndeflib>_.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
