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
<TEMPLATE>.passthat 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
Metadata
Release files for apple-wallet 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apple_wallet-0.2.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apple_wallet-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / apple_wallet-0.2.0.tar.gz
| Download URL | apple_wallet-0.2.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d00bb5a5116953d450c08ac4bd6b276e00ca622b15d49d18924af580bfe2bd77
|
|
BLAKE2b-256 checksum How to use checksums |
470196d6525d5d8982799896322673d744291b15d793b6629b3ffaefc491a19e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / apple_wallet-0.2.0-py3-none-any.whl
| Download URL | apple_wallet-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bda176c0695f196a87e13c28a0201732a10c6c7a731be7d54133007626783c0a
|
|
BLAKE2b-256 checksum How to use checksums |
38d5d0f19263ccf3e4639d2041660d15fce36e45882289318dad0f91ef5c5d18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|