Skip to main content

Library for Google Wallet Communication

Project description

edutap.wallet_google

PyPI - Version CI Tests pre-commit.ci status Ruff

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

Complete 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


Download files

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

Source Distribution

edutap_wallet_google-3.0.0b2.tar.gz (143.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edutap_wallet_google-3.0.0b2-py3-none-any.whl (64.2 kB view details)

Uploaded Python 3

File details

Details for the file edutap_wallet_google-3.0.0b2.tar.gz.

File metadata

  • Download URL: edutap_wallet_google-3.0.0b2.tar.gz
  • Upload date:
  • Size: 143.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for edutap_wallet_google-3.0.0b2.tar.gz
Algorithm Hash digest
SHA256 f16ace8761b83ef6a38bb10b26a117aa16f7a2fa1ca4cb6d6faa14f168d14863
MD5 1bb5f0a6f11f25306d31a1aff38c63f4
BLAKE2b-256 02ef07cd6b5d5236c511e0504b676540c0bd5ae0ff616ed7ca753585797e5786

See more details on using hashes here.

Provenance

The following attestation bundles were made for edutap_wallet_google-3.0.0b2.tar.gz:

Publisher: release.yaml on edutap-eu/edutap.wallet_google

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file edutap_wallet_google-3.0.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for edutap_wallet_google-3.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 c20eaabd183cb0b7aaf32927d8a6a8295a87419eede7813184236ef535a38991
MD5 5754c416f3dd411f56e9a5ed8c891061
BLAKE2b-256 36a3a9bf37d6fa016d515b4650c05482ea9287c29d2c0feb252438567ec3ddd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for edutap_wallet_google-3.0.0b2-py3-none-any.whl:

Publisher: release.yaml on edutap-eu/edutap.wallet_google

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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