Skip to main content

simple-nfc-tag

Read and write data to NFC tags — MIFARE Classic, Ultralight and NTAG21x — through PC/SC readers such as the ACR122U, without hand-writing APDUs.

Status: placeholder. 0.0.1 reserves the name and contains no functionality. The design is settled and implementation is underway. Do not depend on this yet.

Why

pyscard gives you raw APDU plumbing. nfcpy drives PN53x chipsets over libusb and fights the PC/SC driver on Windows. ndeflib parses records but never touches hardware. Nothing covers "give me the bytes off this tag, and don't make me care whether it's a Classic or an NTAG."

Planned API

import simple_nfc_tag as snt

with snt.connect() as reader:
    tag = reader.wait_for_tag(timeout=5)
    print(tag.uid.hex(), tag.product, tag.user_size)

    tag.write(["ABC123", 42])   # compact TLV, auto-typed
    print(tag.read())           # -> ["ABC123", 42]

Three access patterns: reader.current_tag() (non-blocking poll), reader.wait_for_tag() (blocking), and Monitor(reader, on_tag=...) (background thread with callbacks).

Planned scope

  • Readers — generic PC/SC, ACR122U (buzzer, LED, PN532 passthrough), in-memory fake for tests
  • Tags — MIFARE Classic 1K/4K, Ultralight, NTAG213/215/216, identified automatically
  • Formats — compact TLV and raw bytes; NDEF planned as a later codec
  • Sector-trailer skipping, page-granularity writes and authentication handled for you

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_nfc_tag-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_nfc_tag-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_nfc_tag-0.0.1.tar.gz.

File metadata

  • Download URL: simple_nfc_tag-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simple_nfc_tag-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d4d3a32d4939c6c61d5810e26cdc8048b64483a2b6aa38b1aa02881ceeeb92b9
MD5 b6b2dddca29440af863bbdece027dd47
BLAKE2b-256 aed935aa5c9125edb6008004aad84b6e95e3e328f62230119102ed993712ee00

See more details on using hashes here.

File details

Details for the file simple_nfc_tag-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simple_nfc_tag-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simple_nfc_tag-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e77d76ad4293de949999fa1d204cbebc848be8fc5bbe23ea414d25db58bd4a
MD5 14b6f345db5a553aca3d197621ceba36
BLAKE2b-256 3adfb52a36677c488b8bc969aa6e8355efc7add40c10a7c6270ae83852617196

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.0

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page