NFC/RFID tag authentication and encryption library
Project description
schnee
schnee is a Python package and CLI for working with NFC/RFID tags through a PC/SC
reader, with a current focus on NTAG profile inspection and NDEF URL writes.
Installation
Install the package from PyPI:
pip install schnee
Requirements
schnee talks to tags through PC/SC via pyscard, so practical use requires:
- a compatible NFC or smart card reader
- a working system PC/SC library/service
- access to the target tag
Platform-specific PC/SC prerequisites:
- Linux: install a PC/SC implementation such as
pcsc-liteand ensure thepcscddaemon/service is installed and running. Depending on your distribution, you may also need your reader's driver package. - Windows:
pyscarduses the built-in WinSCard PC/SC subsystem that ships with Windows; make sure the smart card service and your reader driver are available. - macOS:
pyscarduses the systemPCSC.framework, which is included with macOS; make sure the reader is connected and recognized by the system.
If the PC/SC stack, service, or reader is not available, pyscard may fail to
import, no readers may be discovered, or CLI commands that access hardware will
fail during reader discovery or card communication.
CLI Usage
After installation, the schnee command is available on your PATH.
Show the top-level help:
schnee --help
List selectable backends and detected PC/SC readers:
schnee backends
Read the current NTAG profile as JSON:
schnee ntag read --backend pcsc
Use a specific reader by name:
schnee ntag read --backend "pcsc:ACS ACR1252 1S CL Reader PICC 0"
Write a URL as a single NDEF URI record:
schnee ntag write-url --backend pcsc --url "https://example.com"
For NTAG 424 DNA tags that require application authentication before writing, provide the current 16-byte AES key as 32 hex characters:
schnee ntag write-url \
--backend pcsc \
--url "https://example.com" \
--ntag424-master-key-hex 00112233445566778899aabbccddeeff
Warning: passing a secret key on the command line can expose it through shell history, terminal logging, or process listings visible to other local users. Avoid using real production keys this way; prefer a safer secret input mechanism if one is available in your environment.
Python API
The stable Python entry points currently exposed by the package are the service
classes re-exported from schnee.services. For example, you can list the
selectable backends from Python:
from schnee.services import ListBackendNamesService
backends = ListBackendNamesService.call(ListBackendNamesService.Request())
print(backends)
This call uses the same backend discovery as schnee backends, so it also
depends on a working PC/SC environment when the PC/SC backend is enabled.
Trademarks and Disclaimer
- Trademarks: NTAG, MIFARE, and NXP are registered trademarks of NXP B.V. This project is an independent open-source implementation and is not affiliated with, endorsed by, or sponsored by NXP B.V.
- Accuracy of Information: This SDK is developed based on publicly available datasheets. While every effort has been made to ensure the accuracy of the implementation, the author makes no guarantees regarding its suitability for any specific purpose.
- Limitation of Liability: In no event shall the author be liable for any damages arising from the use of this software, including but not limited to hardware damage (NFC tags, readers, etc.), data loss, or "bricking" of tags due to incorrect AES key configuration or authentication failures. Use this software at your own risk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file schnee-2026.5.5.3.tar.gz.
File metadata
- Download URL: schnee-2026.5.5.3.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12fb269474708a28e183b7ca392ea6e873001dc670200d79866e3204fdfbbba4
|
|
| MD5 |
660bb44e8ef1d039149299a8c46ade54
|
|
| BLAKE2b-256 |
e8427917c1f8c2b30cc5e0b552e587f745e047cb87ca257f950b5d3309c709c6
|
Provenance
The following attestation bundles were made for schnee-2026.5.5.3.tar.gz:
Publisher:
deploy.yaml on shinaji/schnee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schnee-2026.5.5.3.tar.gz -
Subject digest:
12fb269474708a28e183b7ca392ea6e873001dc670200d79866e3204fdfbbba4 - Sigstore transparency entry: 1439886126
- Sigstore integration time:
-
Permalink:
shinaji/schnee@bb690628a93784f89b5cbf5bfc1b891401ae1f53 -
Branch / Tag:
refs/tags/v2026.05.05.3 - Owner: https://github.com/shinaji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yaml@bb690628a93784f89b5cbf5bfc1b891401ae1f53 -
Trigger Event:
release
-
Statement type:
File details
Details for the file schnee-2026.5.5.3-py3-none-any.whl.
File metadata
- Download URL: schnee-2026.5.5.3-py3-none-any.whl
- Upload date:
- Size: 50.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df0990cafe2b117e17323ab84c8922f7ffc1d2231b21fb78d7c46cdcf797123
|
|
| MD5 |
ea5cbf55c60d077e794a419648182ff9
|
|
| BLAKE2b-256 |
12d3e85b84dfe85829a9a856ad79d691eb7907fc59f6d637f820d40c7302037f
|
Provenance
The following attestation bundles were made for schnee-2026.5.5.3-py3-none-any.whl:
Publisher:
deploy.yaml on shinaji/schnee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
schnee-2026.5.5.3-py3-none-any.whl -
Subject digest:
3df0990cafe2b117e17323ab84c8922f7ffc1d2231b21fb78d7c46cdcf797123 - Sigstore transparency entry: 1439886136
- Sigstore integration time:
-
Permalink:
shinaji/schnee@bb690628a93784f89b5cbf5bfc1b891401ae1f53 -
Branch / Tag:
refs/tags/v2026.05.05.3 - Owner: https://github.com/shinaji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yaml@bb690628a93784f89b5cbf5bfc1b891401ae1f53 -
Trigger Event:
release
-
Statement type: