Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apple_wallet-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

apple_wallet-0.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file apple_wallet-0.2.0.tar.gz.

File metadata

  • Download URL: apple_wallet-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for apple_wallet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d00bb5a5116953d450c08ac4bd6b276e00ca622b15d49d18924af580bfe2bd77
MD5 f804d43a25d7bf5f0e99ceaca20d2623
BLAKE2b-256 470196d6525d5d8982799896322673d744291b15d793b6629b3ffaefc491a19e

See more details on using hashes here.

File details

Details for the file apple_wallet-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apple_wallet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bda176c0695f196a87e13c28a0201732a10c6c7a731be7d54133007626783c0a
MD5 72b40f2cc2c4ae7d3725ab31e1e5adde
BLAKE2b-256 38d5d0f19263ccf3e4639d2041660d15fce36e45882289318dad0f91ef5c5d18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page