Add requirements.txt and correct the dependency list

Add a requirements file (pyscard, opencv-python, openpyxl) so users can
pip install -r requirements.txt. Remove the incorrect cryptography
dependency from the README - all crypto uses the Python standard library.
This commit is contained in:
2026-07-08 16:13:45 -07:00
parent 08c77e1124
commit 75975478f2
2 changed files with 12 additions and 3 deletions

View File

@@ -123,13 +123,13 @@ with `qr_to_sheet.py`.
## Requirements
- Python 3.9+
- `pyscard`, `cryptography`, `openpyxl` (for reading legacy `.xlsx`), and
`opencv-python` (for QR decoding).
- `pyscard` (smartcard access), `opencv-python` (QR decoding), and `openpyxl`
(reading legacy `.xlsx`). All cryptography uses the Python standard library.
- For writing to a card: a PC/SC reader with the Apex (over NFC) or a JavaCard
carrying the applet presented to it.
```
pip install pyscard cryptography openpyxl opencv-python
pip install -r requirements.txt
```
---

9
requirements.txt Normal file
View File

@@ -0,0 +1,9 @@
# otp-import runtime dependencies (Python 3.9+)
# Install with: pip install -r requirements.txt
#
# All cryptography (PBKDF2, HMAC, Base32) uses the Python standard library,
# so there is no separate crypto dependency.
pyscard>=2.0 # PC/SC smartcard access (apex_otp_import.py)
opencv-python>=4.5 # QR-code decoding (qr_to_sheet.py)
openpyxl>=3.0 # reading legacy .xlsx input (apex_otp_import.py, tests)