A simple library to create Apple passes compatible with Wallet
Project description
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>.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apple_wallet-0.1.1.tar.gz
.
File metadata
- Download URL: apple_wallet-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d54370b44dfbfbe304075c7a2637650c5297f6261e81c9847637148d54312d2 |
|
MD5 | ffb01a6b9e20f35bf302b65ee3ed2f13 |
|
BLAKE2b-256 | 2c167cc80920295a4297f978f9fae7ee7f5f7da959b245a29dc419865e7ae223 |
File details
Details for the file apple_wallet-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: apple_wallet-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd97172a5ea3389968f1f340922dfd47fa1ad29d873d1872ee49d4bdb4d9d00 |
|
MD5 | c6a0e6e6486b0f4ee598d61563ad355a |
|
BLAKE2b-256 | 98eb8e8834711f52c3b415bf3d2cec1a650a2ddf3456a3146394713e0dea9e89 |