Registry / communication / pyobjc-framework-libxpc

pyobjc-framework-libxpc

JSON →
library12.2pypypiunverified

PyObjC-framework-libxpc provides Python bindings for the macOS XPC framework, allowing Python applications to interact with XPC services. It is part of the larger PyObjC project, currently at version 12.1, and follows a release cadence tied to macOS SDK updates and Python version support.

pip install pyobjc-framework-libxpc
INSTALL
IMPORT
SIG · PYOBJC-FRAMEWORK-L
P
pyobjc-framework-libxpc
communicationpythonv12.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
build_error
glibc
py 3.103.920 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

libxpc
import libxpc

This quickstart demonstrates importing the `libxpc` framework and accessing a couple of its core symbols to confirm the bindings are correctly installed and available. A full functional XPC client or service would require more extensive setup.

import libxpc import objc def main(): print(f"Accessing XPC framework symbols: {libxpc.xpc_main.__name__}") print(f"XPC types available: {libxpc.xpc_type_connection.__name__}") # Note: A full XPC client/server requires more setup beyond a quickstart. # This example only verifies the framework import and symbol access. # Example of a common PyObjC utility function, not directly libxpc but relevant. class MyDelegate(objc.lookUpClass('NSObject')): pass print(f"Successfully looked up NSObject: {MyDelegate.__name__}") if __name__ == '__main__': main()
Debug
Known issues
breakingPyObjC major versions frequently drop support for older Python versions. PyObjC 12.x dropped Python 3.9 support, and PyObjC 11.x dropped Python 3.8 support. Always check `requires_python`.
fix
Ensure your Python environment meets the minimum version requirement (currently >=3.10 for PyObjC 12.1). Upgrade Python if necessary.
affects: 11.0+, 12.0+
gotchaBehavioral changes related to `__init__` and `__new__` in Python subclasses of Objective-C classes can cause unexpected initialization issues. PyObjC 10.3 prevented calling `__init__` in some scenarios, which was partially reverted in 10.3.1.
fix
If subclassing Objective-C classes, be cautious with overriding `__new__` and `__init__`. Test initialization paths thoroughly, especially when upgrading between minor PyObjC versions. Refer to PyObjC documentation for `__new__` and `__init__` guidelines.
affects: 10.3, 10.3.1
gotchaPyObjC 11.1 introduced changes to how initializer methods are handled to align with Objective-C's Automatic Reference Counting (ARC) model. This ensures correct memory management but might subtly change behavior if existing code relied on previous reference counting semantics.
fix
Review code that involves `init` methods of Objective-C objects, particularly if it involves manual reference counting or complex object graph management, to ensure it behaves as expected with ARC-compliant reference handling.
affects: 11.1+
deprecatedOlder frameworks or parts of frameworks may be removed entirely when macOS drops support for them. For example, PyObjC 10.0 removed `IMServicePlugIn` bindings as the framework was deprecated in macOS 10.13 and removed in macOS 14.
fix
Before upgrading PyObjC, check the release notes for any removed framework bindings if your application relies on less common or deprecated macOS APIs. Plan to migrate away from deprecated macOS frameworks.
affects: 10.0+
Upgrade
Version history
12.2latest on PyPI · released May 30, 2026
Audit
Dependencies
pyobjc-corerequiredProvides the core bridge between Python and Objective-C, essential for all PyObjC framework bindings.
Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
pyobjc-framework-libxpc — pip install pyobjc-framework-libxpc · libregistry