db-pkpass

Convert Deutsche Bahn PDF tickets to PKPass
git clone https://git.ce9e.org/db-pkpass.git

commit
d2199a7e6616613233783954e614ad48bc0b4914
parent
6a52c4eb3311c99169ed0f855e11fc5cd8c5f907
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-05-30 13:58
add README

Diffstat

A README.md 21 +++++++++++++++++++++
A requirements.txt 4 ++++

2 files changed, 25 insertions, 0 deletions


diff --git a/README.md b/README.md

@@ -0,0 +1,21 @@
   -1     1 Convert Deutsche Bahn PDF tickets to PKPass
   -1     2 
   -1     3 # Usage
   -1     4 
   -1     5 ```sh
   -1     6 $ python3 -m venv .venv
   -1     7 $ . .venv/bin/activate
   -1     8 $ python3 -m pip install -r requirements.txt
   -1     9 $ python3 db_pkpass.py /path/to/my/ticket.pdf
   -1    10 ```
   -1    11 
   -1    12 # Limitations
   -1    13 
   -1    14 -   The PKPass file does not contain a signature, so it will not work with
   -1    15     Apple Wallet
   -1    16 -   The code has not been extensively tested yet. There will still be many
   -1    17     issues with different tickets or wallets.
   -1    18 
   -1    19 # Prior Art
   -1    20 
   -1    21 For a much more comprehensive solution, see https://github.com/TheEnbyperor/zuegli

diff --git a/requirements.txt b/requirements.txt

@@ -0,0 +1,4 @@
   -1     1 numpy
   -1     2 opencv-python
   -1     3 PyMuPDF
   -1     4 zxing-cpp