https://github.com/btoron/apple-wallet
Python wrapper to create Apple Wallet passes
https://github.com/btoron/apple-wallet
Last synced: 3 months ago
JSON representation
Python wrapper to create Apple Wallet passes
- Host: GitHub
- URL: https://github.com/btoron/apple-wallet
- Owner: btoron
- Created: 2024-10-14T12:28:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T10:00:02.000Z (over 1 year ago)
- Last Synced: 2025-10-09T04:43:34.871Z (8 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Apple Wallet
A very simple library to generate Passes for Apple Wallet
Model-based (hello pydantic)
### Configuration
All the configuration comes through environment vars (see `pydantic-settings`, but can be overwritten):
- **APPLE_WALLET_TEMPLATE_PATH**: Path to the templates. Every template is a folder called `.pass` that follows the structure defined in [3]. Defaults to `./templates`
- **APPLE_WALLET_CERTIFICATE_PATH**: Path to the folder containing certificates and keys. Defaults to `./certificates`. Three certificates are needed:
- Key
- CSR
- WWDR
### Tests
202409: Tested for iOS 17 and 18
### Acknowledgments
This library is heavily based on the examples and code provided in:
[1] https://github.com/twopointone/applepassgenerator (Worked fine but I am addicted to Pydantic)
[2] https://github.com/alexandercerutti/passkit-generator (Excellent ideas that I try to replicate in Python)
### More about Apple Pass ###
[3] Reference: Human Interface: https://developer.apple.com/design/human-interface-guidelines/wallet
[4] Reference: PassKit: https://developer.apple.com/wallet/
[5] Reference: PassKit Package Format Reference: https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/Introduction.html