PyObjC ExtensionKit Framework

12.1 · active · verified Tue Apr 14

This package provides Python wrappers for Apple's ExtensionKit framework on macOS. It is part of the broader PyObjC project, which acts as a bidirectional bridge allowing Python scripts to interact with Objective-C libraries, including macOS Cocoa frameworks. The current version is 12.1, and the project maintains a consistent release cadence, often aligning with new macOS SDKs and Python version support.

Warnings

Install

Imports

Quickstart

This quickstart verifies the successful installation and import of the `ExtensionKit` Python bindings. Practical use of `ExtensionKit` typically involves building a macOS application extension using Xcode and interacting with it programmatically, making a standalone Python-only example challenging without an external host application context.

import ExtensionKit
import objc

print(f"Successfully imported ExtensionKit wrapper from PyObjC.")

# In a real macOS application development scenario, ExtensionKit types
# (like EXExtension, EXExtensionContext) would be used within the context
# of defining or interacting with an application extension (e.g., share extension,
# custom UI extension). 
#
# A direct Python-only example demonstrating meaningful ExtensionKit
# functionality without an accompanying Xcode project and host application
# is not straightforward. This quickstart primarily verifies the installation
# and import of the Python bindings for the framework.
#
# To see available symbols, you could inspect the module:
# print(dir(ExtensionKit))

view raw JSON →