nfc-claim-audit
Version 0.1.0. An offline static checker comparing documented tap-to-tag capability with Python AST evidence. Audited source is never executed. Requires Python 3.9 or later; no runtime dependencies.
python3 -m pip install .
nfc-claim-audit . --json
python3 -m nfc_claim_audit . --verbose
python3 -m unittest discover
python3 -m build
The positional directory defaults to the current directory. Repeat --ignore
with root-relative globs to omit files. --version prints the version.
JSON output contains verdict, findings (rule, severity, message), and a scanned
file count. Human output prints the same verdict and findings.
The following rules report contradictions between prose and source.
documented-nfc-claim-false
documented-no-nfc-claim-false
Production absence yields HIGH;
evidence confined to test files yields MEDIUM for a positive assertion.
The default HIGH threshold reports MEDIUM findings with exit 0;
--fail-on MEDIUM makes them exit 2. HIGH findings exit 2. Invalid or
unreadable paths exit 1. No detected assertion yields PASS and exit 0.
A positive assertion without any source yields HIGH; an absence assertion
without source passes. There is at most one finding per family.
Documentation includes root README.md and Markdown files beneath any docs
path component. Fenced blocks are excluded; inline code counts. Matching
lowercases, expands contracted negation, replaces hyphens with spaces, and
joins whitespace within blank-line-separated paragraphs. Absence spans are
removed before positive matching. Exact templates and word boundaries are
used; the complete templates are in nfc_claim_audit/phrases.py.
Source includes .py files except tests, test-prefixed or test-suffixed files, fixtures, docs, examples, and symlinks. Test evidence is considered separately. Alias-resolved nfcpy ContactlessFrontend instantiation is sufficient evidence; opening the device counts without a subsequent connect. Bound, self-attribute, with-target, and chained connection patterns therefore count as well. Local class or function definitions shadow imported names.
Limitations
Only exact templates are recognized. A bare NFC word, user instructions to hold or tap a card, Bluetooth or USB reach, printing, and file exports do not make an assertion for this checker. Imports, identifiers, NDEF objects, decorators, and logging-only functions do not demonstrate a frontend operation. System tag helpers invoked through subprocesses are not counted: shell command strings are not AST evidence. Other NFC stacks, including Android NFC and PC/SC smartcard readers, are out of scope; only nfcpy frontends are counted. Static evidence cannot establish hardware availability or successful runtime behavior. This is module-level import resolution, not control-flow analysis; unparseable source provides no evidence. Environment files are never opened.
Metadata
Release files for nfc-claim-audit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nfc_claim_audit-0.1.0.tar.gz | 9.3 kB | Without provenance | Details for nfc_claim_audit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nfc_claim_audit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nfc_claim_audit-0.1.0-py3-none-any.whl |
Total release size: 16.2 kB
Release files / nfc_claim_audit-0.1.0.tar.gz
| Download URL | nfc_claim_audit-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fb149986c22f6227b9a9754122f557bee8de545e5390dd8ca369235f7f22560
|
|
BLAKE2b-256 checksum How to use checksums |
2d624883d7e77d3a25139505b987c5b962b9d461f327f3942fa53f16e665843b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / nfc_claim_audit-0.1.0-py3-none-any.whl
| Download URL | nfc_claim_audit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86d295d2042ba39f1c2e47a9a30296081f7194982941bd1e3ba3c3f258146b8d
|
|
BLAKE2b-256 checksum How to use checksums |
a88224234c82b6f1cde7133a5c41ec7bfa61160c65dcf18203620ca600b22a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for nfc-claim-audit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.