Add --import-qr to run the QR->CSV step before importing

Wrap the QR decode/append step behind --import-qr on the importer so a
single command runs the whole pipeline: decode QR images, append only
new credentials to the CSV (deduped on otpauth://, existing entries
silently skipped), then validate and import. QR folder defaults to the
CSV's folder; override with --qr-images. Refactor qr_to_sheet into
reusable collect_candidates / apply_new_candidates / run_qr_import.
This commit is contained in:
2026-07-08 15:31:03 -07:00
parent 0fad68b9f6
commit a8a405600c
4 changed files with 109 additions and 37 deletions

View File

@@ -72,6 +72,11 @@ python apex_otp_import.py --input ... --skip-existing
# Target a specific reader, supply a password, and profile memory
python apex_otp_import.py --input ... --reader VivoKey --password '...' --profile-memory
# One-shot pipeline: decode new QRs into the CSV (only new, deduped on
# otpauth://), then validate and import. QR folder defaults to the CSV's folder.
python apex_otp_import.py --input otp-keys.csv --import-qr --reader VivoKey
python apex_otp_import.py --input otp-keys.csv --import-qr --qr-images /qr/folder --overwrite-all
# Import, then set an access password (only if the applet has none yet)
python apex_otp_import.py --input ... --set-password 'yourpassword'