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

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.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

apple_wallet-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apple_wallet-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 511cd5477f874d11b9ffba303894e59989825fedc0a43f45864626dd286db54f
MD5 b81f195410d9e65d9d4df5dcbb30bbb5
BLAKE2b-256 56487fe3de8d1103930cbc040d437d32df7919909b52d9d26ad2d5232cef4602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apple_wallet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b66f4b3db532f434b680e26048a93a5f63a59817365f16bad1fcad4a0adf6bf2
MD5 339d3160c96f14a36918a3b7bbb5e240
BLAKE2b-256 5b6e3acd6cdff51ea3cdf5f84faf4c457b64626378eb22c6dd5cb24305f1269d

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