Skip to main content

Library for Google Wallet Communication

Project description

edutap.wallet_google

PyPI - Version CI Tests pre-commit.ci status Code style: black

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.0b1.tar.gz (199.7 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.0b1-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

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

Hashes for edutap_wallet_google-3.0.0b1.tar.gz
Algorithm Hash digest
SHA256 db3a3ace896bbaf7a6f3f21d46359cc5a2900cf4c1a8651c869805e26ed124f3
MD5 2106b2c104a6b4986e0d2348b3196cd1
BLAKE2b-256 e3a757b21a87594bfe169e1f8f4e7e951aee6a92ca0cc765ed9804d91994da7c

See more details on using hashes here.

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

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.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for edutap_wallet_google-3.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 69df0c44dcb8503a636b0fa582fb90f57d8f4c0eb530d1ebbd70459c63e54c80
MD5 310d3e31678bfc199b13eda77705c0d6
BLAKE2b-256 4f61929e6f0197ea62796ea7050d15695bb9f2b68b7853555953c3ec45a4b76b

See more details on using hashes here.

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

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