https://github.com/xi/db-pkpass
Convert Deutsche Bahn PDF tickets to PKPass
https://github.com/xi/db-pkpass
Last synced: 10 months ago
JSON representation
Convert Deutsche Bahn PDF tickets to PKPass
- Host: GitHub
- URL: https://github.com/xi/db-pkpass
- Owner: xi
- License: mit
- Created: 2025-05-30T13:53:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T13:26:56.000Z (about 1 year ago)
- Last Synced: 2025-08-08T05:50:06.476Z (12 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Convert Deutsche Bahn PDF tickets to PKPass
# Usage
```sh
$ python3 -m venv .venv
$ . .venv/bin/activate
$ python3 -m pip install -r requirements.txt
$ python3 db_pkpass.py /path/to/my/ticket.pdf
```
You can also make manual adjustments before packing the pkpass file:
```sh
$ python3 db_pkpass.py /path/to/my/ticket.pdf --debug > ticket.json
$ $EDITOR ticket.json
$ python3 db_pkpass.py ticket.json
```
# Limitations
- The PKPass file does not contain a signature, so it will not work with
Apple Wallet
- The code has not been extensively tested yet. There will still be many
issues with different tickets or wallets.
# Prior Art
For a much more comprehensive solution, see https://github.com/TheEnbyperor/zuegli