Library for Google Wallet Communication
Project description
edutap.wallet_google
Python library for creating and managing digital passes in Google Wallet.
Digital passes are mobile tickets, membership cards, event tickets, loyalty cards, or coupons that users store in their smartphone's Google Wallet app—like a digital version of the cards in your physical wallet.
What This Library Does
This package lets you:
- Create digital passes (event tickets, membership cards, loyalty cards, etc.)
- Update passes already in users' wallets
- Send notifications to pass holders
- List and manage your issued passes
- Handle callbacks when users save or delete passes
Both sync and async APIs are supported out of the box.
Quick Start
pip install edutap.wallet_google
from edutap.wallet_google import api
# Create a pass class (template)
my_class = api.new("GenericClass", {
"id": "your-issuer-id.your-class-name",
"classTemplateInfo": {"cardTemplateOverride": {"cardRowTemplateInfos": [...]}}
})
api.create(my_class)
# Create a pass object (the actual pass)
my_pass = api.new("GenericObject", {
"id": "your-issuer-id.unique-pass-id",
"classId": "your-issuer-id.your-class-name",
"state": "ACTIVE"
})
api.create(my_pass)
# Generate "Add to Google Wallet" link
link = api.save_link([my_pass])
Documentation
Features
- Complete Google Wallet API coverage - All pass types supported
- Type-safe - Full Pydantic models matching Google's schema
- Sync + Async - Use the API style that fits your application
- FastAPI integration - Ready-made endpoints for callbacks and images
- Signature verification - Cryptographic validation of Google's callbacks
- Modern Python - Built with httpx, Pydantic v2, and Python 3.10+
Requirements
- Python 3.10 or later (3.13 recommended)
- Google Cloud Project with Google Wallet API enabled
- Service account credentials (see documentation)
License
EUPL 1.2 (European Union Public Licence)
Credits
Developed by the eduTAP - EUGLOH Working Package - Campus Life team:
- Alexander Loechel (LMU München) - Vision & consulting
- Philipp Auersperg-Castell (BlueDynamics Alliance) - Core implementation
- Jens Klein (BlueDynamics Alliance) - API design & testing
- Robert Niederreiter (BlueDynamics Alliance) - Plugin architecture
- Simon Lund (LMU München) - Maintenance
Initial financing: LMU München
Parts of the refactoring and code modernization were assisted by AI with Claude Code.
Contributing? We welcome issues and pull requests at github.com/edutap-eu/edutap.wallet_google
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edutap_wallet_google-3.0.0b1.tar.gz.
File metadata
- Download URL: edutap_wallet_google-3.0.0b1.tar.gz
- Upload date:
- Size: 199.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db3a3ace896bbaf7a6f3f21d46359cc5a2900cf4c1a8651c869805e26ed124f3
|
|
| MD5 |
2106b2c104a6b4986e0d2348b3196cd1
|
|
| BLAKE2b-256 |
e3a757b21a87594bfe169e1f8f4e7e951aee6a92ca0cc765ed9804d91994da7c
|
Provenance
The following attestation bundles were made for edutap_wallet_google-3.0.0b1.tar.gz:
Publisher:
release.yaml on edutap-eu/edutap.wallet_google
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edutap_wallet_google-3.0.0b1.tar.gz -
Subject digest:
db3a3ace896bbaf7a6f3f21d46359cc5a2900cf4c1a8651c869805e26ed124f3 - Sigstore transparency entry: 735440398
- Sigstore integration time:
-
Permalink:
edutap-eu/edutap.wallet_google@76ecc7891433b3a6bb5493f025934ade01e87cf0 -
Branch / Tag:
refs/tags/v3.0.0b1 - Owner: https://github.com/edutap-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@76ecc7891433b3a6bb5493f025934ade01e87cf0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file edutap_wallet_google-3.0.0b1-py3-none-any.whl.
File metadata
- Download URL: edutap_wallet_google-3.0.0b1-py3-none-any.whl
- Upload date:
- Size: 60.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69df0c44dcb8503a636b0fa582fb90f57d8f4c0eb530d1ebbd70459c63e54c80
|
|
| MD5 |
310d3e31678bfc199b13eda77705c0d6
|
|
| BLAKE2b-256 |
4f61929e6f0197ea62796ea7050d15695bb9f2b68b7853555953c3ec45a4b76b
|
Provenance
The following attestation bundles were made for edutap_wallet_google-3.0.0b1-py3-none-any.whl:
Publisher:
release.yaml on edutap-eu/edutap.wallet_google
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edutap_wallet_google-3.0.0b1-py3-none-any.whl -
Subject digest:
69df0c44dcb8503a636b0fa582fb90f57d8f4c0eb530d1ebbd70459c63e54c80 - Sigstore transparency entry: 735440407
- Sigstore integration time:
-
Permalink:
edutap-eu/edutap.wallet_google@76ecc7891433b3a6bb5493f025934ade01e87cf0 -
Branch / Tag:
refs/tags/v3.0.0b1 - Owner: https://github.com/edutap-eu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@76ecc7891433b3a6bb5493f025934ade01e87cf0 -
Trigger Event:
release
-
Statement type: