pyobjc-framework-passkit provides Python bindings for Apple's PassKit framework on macOS, enabling Python applications to interact with Wallet passes. It is part of the larger PyObjC project, offering direct access to the native macOS APIs. Version 12.1 is current, with releases typically synchronized with new macOS SDKs and PyObjC core updates.
pip install pyobjc-framework-passkitVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import the `PassKit` framework and check if the PassKit library is available on the current macOS system. It also shows how to get the shared `PKPassLibrary` instance and check if the application has permission to add passes. Note that full interaction with Wallet passes typically requires the Python script to be run within a properly signed macOS application bundle with the necessary entitlements.
Upgrade Python to 3.10 or newer.
Upgrade Python to 3.9 or newer (Python 3.10+ for PyObjC 12.0+).
Review Python subclasses of Objective-C classes, especially those overriding `init` methods or manually calling `alloc()`, to ensure correct reference counting and object lifecycle management.
If subclassing an Objective-C class and relying on PyObjC's default object creation, use Objective-C compatible `init` methods (e.g., `initWith...`) rather than a Python `__init__`.