Commit Graph
100 Commits
Author SHA1 Message Date
scito f4389ca8a3 fix linting 2022-12-29 15:52:17 +01:00
scito b89a338246 enable mypy type checking 2022-12-29 14:24:12 +01:00
scito 631bacc409 use tmp_path fixture instead of clean_up() in pytests 2022-12-29 13:44:19 +01:00
scito 833afa7c13 use 3.11-slim-bullseye, add missing package 2022-12-29 11:50:19 +01:00
scito 4209a5db3d move abort to end, use SystemExit instead; improve colors 2022-12-29 11:18:57 +01:00
scito d9a4c7ca9f fix docker image digest 2022-12-29 04:36:31 +01:00
scito 829fe65b1e ci: pip install pytest-mock 2022-12-29 04:24:00 +01:00
scito c90526dcf2 fix undefined name 'abort' and 'qreader' 2022-12-29 04:15:36 +01:00
scito 47e84e4462 run docker capture version 2022-12-29 03:19:09 +01:00
scito b4931856ba apk add --no-cache nano zlib jpeg && re-enable tests 2022-12-29 02:34:29 +01:00
scito f532dc668d indent_size = 2 for yml 2022-12-29 01:59:54 +01:00
scito 1dee86668a rename ARG run_tests to RUN_TESTS 2022-12-29 01:48:00 +01:00
scito aa0de699fe disable tests for alpine 2022-12-29 01:43:22 +01:00
scito 7e684ff19e --build-arg run_tests=false 2022-12-29 01:35:43 +01:00
scito b159b9e70d apk add musl-dev and apk del .build-deps 2022-12-29 01:13:48 +01:00
scito 951878d027 apk add gcc 2022-12-29 01:02:41 +01:00
scito 2a44bbfa27 use $(apk --print-arch) 2022-12-29 00:53:47 +01:00
scito 540ae7438d use $(uname -m) 2022-12-29 00:42:13 +01:00
scito c346c085b6 apk add python3-dev py3-setuptools 2022-12-29 00:33:52 +01:00
scito 7cb3b2ac21 always apk add on alpine 2022-12-29 00:29:26 +01:00
scito 0eb5014eb0 ci_docker: add docker/setup-buildx-action@v2 2022-12-29 00:25:29 +01:00
scito d4f5eb243e change to "$TARGETARCH" == "arm64" 2022-12-29 00:02:14 +01:00
scito b05decc10f apk add zlib-dev jpeg-dev only for alpine linux/arm64 2022-12-28 23:58:09 +01:00
scito 21ebccbba5 apk add zlib-dev 2022-12-28 23:44:30 +01:00
scito 912825034f add zlib for alpine/arm64 docker image 2022-12-28 23:37:54 +01:00
scito 95e7d73173 mock no_args tests 2022-12-28 23:37:21 +01:00
scito 9f0872c2d0 extract from camera
- add help description
- use f-strings
- handle plural correctly
- rename methods, use otp_url instead of line
- remove importlib.util
- move cv2 imports to top
- remove unnecessary global delcarations
- group image tests
2022-12-28 22:43:40 +01:00
scito 7964c687f6 make running tests optional in docker build 2022-12-28 09:02:02 +01:00
scito 1d0b568b1e setup QEMU 2022-12-27 11:36:53 +01:00
scito aaa7bd3da1 build also on arm64 2022-12-27 10:34:32 +01:00
scito 5ab5f84ff3 add docker label for source 2022-12-27 01:11:36 +01:00
scito a4c4badd54 fix docker hub username 2022-12-27 00:57:49 +01:00
scito f272c35a1f enable docker push in ci_docker 2022-12-27 00:52:14 +01:00
scito e4e5271c0f github actions docker build no_qr_reader 2022-12-27 00:43:30 +01:00
scito 158564e79a fix to_bytes() mandatory byte_order 2022-12-27 00:18:37 +01:00
scito 672d18a5ca build docker images, run tests in docker build
- qreader_available flag
- echo commands in upgrade_deps.sh
2022-12-26 23:57:38 +01:00
scito 0490e227e1 docker image with qreader, 2nd image without qreader
- organize imports
- add qreader pytest.mark
- relaxed mode for pytest
- run tests in docker
- more tests
2022-12-26 18:31:09 +01:00
scito 2bcaa35251 organize imports 2022-12-25 11:00:15 +01:00
scito b0b4c29e7b improve README 2022-12-24 15:50:44 +01:00
scito e754befb52 refactor; update setup.py
more verbose logging
better error messages
2022-12-24 15:30:17 +01:00
scito 06b8efff62 add zypper and dnf for libzbar0 2022-12-24 05:31:17 +01:00
scito 5d0feacdba update README 2022-12-24 05:12:52 +01:00
scito 343520acb8 support multiple infiles 2022-12-24 04:48:12 +01:00
scito c2d7c905ff handle wrong stdin streams 2022-12-24 04:19:43 +01:00
scito bc329e24d5 renable libzbar 2022-12-24 03:29:14 +01:00
scito 4612ab6e7f catch zbar import error 2022-12-24 03:25:10 +01:00
scito 05db190de3 test qreader import 2022-12-24 03:12:06 +01:00
scito 0ad3c2d8ed change name to nightly tests 2022-12-24 03:06:03 +01:00
scito 31bb2909da fix ci jobs 2022-12-24 03:05:07 +01:00
scito c1a55fb874 test pypy only in nightly builds 2022-12-24 03:02:08 +01:00
scito 82da427d1a refactor code: extract method 2022-12-24 02:56:40 +01:00
scito af0d7ffd5d dynamic import of QReader
since this module has a dependency to zbar lib
2022-12-24 02:46:36 +01:00
scito 9a308b148f fix macOS ci 2022-12-24 02:37:16 +01:00
scito cd07851e30 install zbar lib 2022-12-24 02:29:43 +01:00
scito f4934192ae WIP 2022-12-24 01:59:35 +01:00
scito 65c52f4d81 skip verbose tests for pypy 2022-12-19 22:37:23 +01:00
scito 8ba4439305 add utf-8 encoding tests 2022-12-19 22:37:23 +01:00
scito 10bc6959a3 add python to vscode recommended extensions 2022-12-19 17:48:17 +01:00
scito 7af4017910 ci: daily tests and order python from new to old
- more recent version first
2022-12-19 00:11:30 +01:00
scito 7af631ff1e ci: setup testing for linux, macos and windows platforms
- fix ci for windows: remove bash if/fi
- exlucde failing test from windows
- enable scheduled tests
- use --use-pep517 for pip install: avoid deprecation message
- exlcude windows-latest and pypy-3.9 since there is a problem with installing (missing zlib.h)
2022-12-18 23:06:52 +01:00
scito ca4a0bc7d2 improvements for - (stdout)
- - implies -q
- use add_mutually_exclusive_group for -v and -q
- adapt and improve tests
2022-12-18 21:34:24 +01:00
scito 1be4c7e0ef suppor writing csv and json to stdout; print errors to stderr
- add tests
2022-12-18 19:24:07 +01:00
scito fd1841f8dd update Pipfile.lock 2022-12-18 17:42:42 +01:00
scito 81c2cb498a add stdin pytest 2022-12-18 17:41:35 +01:00
scito 21c16ed44e add pypy Python versions 3.7, 3.8, and 3.9 to GitHub CI testing 2022-12-18 13:26:17 +01:00
scito 30638041d8 upgrade to protobuf 4.21.12 2022-12-16 13:17:39 +01:00
scito 892f4f92ae fix compatibility for Python < 3.11 2022-12-16 13:10:22 +01:00
scito bda0186d10 test wrong data and improve error handling 2022-12-16 12:43:32 +01:00
scito 96c8836a98 upgrade to protobuf 4.21.11 2022-12-10 12:25:15 +01:00
scito c44a3f45de add pip installation; improve README
- improve README
    - add Installation section
    - add Features section
    - add Glossary
    - add related projects

- add setup.py for pip installation:
    pip install git+https://github.com/scito/extract_otp_secret_keys
2022-12-10 12:23:13 +01:00
scito a77e775948 add keepass csv export; improve hotp
- export to dedicated totp and hotp csv files for KeePass
- show Typ as totp/hotp instead of OTP_TOTP/OTP_HOTP
  (BREAKING CHANGE in csv, json and stdout, qr codes or urls are not affected)
- add hotp example
- add hotp tests
- export counter for hotp to csv and json files
- add section on KeePass to README
- increase protobuf to 4.21.10
- show file names of exported csv or json files
2022-12-04 16:19:30 +01:00
scito 10fefacd2d add clean pipenv to README 2022-11-27 21:47:34 +01:00
scito b562ceb00a use Python 3.11 for pipenv 2022-11-27 18:33:21 +01:00
scito 3e1818619e add dev deps to Pipfile 2022-11-19 10:17:44 +01:00
scito a95a0d1325 upgrade devcontainer to Python 3.11 2022-10-31 22:11:55 +01:00
scito 302c45be99 generalize to upgrade_deps.sh and update Pipfile.lock 2022-10-31 21:50:16 +01:00
scito 354a4bdada improve steps in README.md 2022-10-30 14:46:43 +01:00
scito 13c4b6c7d4 enable Python 3.11 ci 2022-10-25 22:36:58 +02:00
scito 52d5c56890 use protobuf 4.21.8 2022-10-22 10:31:25 +02:00
scito a60cbbb7bb ignore wheel files 2022-09-25 11:59:46 +02:00
scito 4546655cc5 add protoc upgrade script and update to protoc 21.6/protobuf 4.21.6 2022-09-25 11:54:22 +02:00
Roland Kurmann be4d0d37db add default codeql-analysis.yml
This file enables security scans on GitHub.
2022-09-17 11:24:11 +02:00
scito 3933e6ed8a add #StandWithUkraine 2022-09-09 18:50:10 +02:00
scito dbfd3464f2 save qr code to specific dir, improve help, add tests
- use metavar for files and dirs in help
- support several recursive dirs in saveqr
- add saveqr and debug tests
2022-09-09 13:15:22 +02:00
scito fbefb3474c fix save_qr: dict notation is needed 2022-09-09 13:08:35 +02:00
scito 4baf406211 improve docu
- add help page to README.txt
- remove -p
- mention optional qrcode module
2022-09-08 21:26:19 +02:00
scito cd2d3258d3 handle not encoded + in query params, fixes #15
- add debug level, by givein parameter -vv
- if the base64 string is not urlencoded, then + will be replaced by a space,
  what cannot be decoded anymore
  --> replace spaces back to plus
- add test
2022-09-07 21:58:03 +02:00
scito df8b99dce4 add debug launch config for folder and workspace 2022-09-07 21:49:29 +02:00
scito 801c0e42d0 add technical spelling words, like TOTP 2022-09-07 19:59:38 +02:00
scito d7f4533c99 enable base64 decode validation
Enable validation for analyzing #15
2022-09-07 19:36:10 +02:00
scito 9beb98693c README: link badges, add protobuf 2022-09-04 22:07:39 +02:00
scito fbde835601 enable pytest in vscode and mention it in README 2022-09-04 19:02:36 +00:00
scito fb4cee14da add VSCode devcontainer setup 2022-09-04 13:58:58 +00:00
scito 4027677b38 add vscode settings.json 2022-09-04 13:44:46 +02:00
scito acab230436 improve README.md 2022-09-04 08:57:12 +02:00
scito 7fc69ea415 refactor to reduce complexity of extract_otps (main loop)
flake8 is happy now
2022-09-04 08:37:03 +02:00
scito 16d9fffc4a add test for verbose output 2022-09-04 08:16:20 +02:00
scito 33bba8848a add dependabot.yml 2022-09-04 01:30:45 +02:00
scito 2eaab5e3b5 update README and CI 2022-09-04 01:01:53 +02:00
scito 9d08ebaa38 add output tests 2022-09-04 00:15:08 +02:00