Registry / pyobjc-framework-sharedwithyou

pyobjc-framework-sharedwithyou

JSON →
library12.2pypypiunverified

pyobjc-framework-sharedwithyou provides Python wrappers for Apple's SharedWithYou framework on macOS. It is part of the PyObjC project, a bidirectional bridge enabling Python scripts to interact with Objective-C libraries, including macOS Cocoa frameworks. The current version is 12.1 and it maintains an active release cadence, typically aligning with macOS SDK updates and Python version support.

pip install pyobjc-framework-sharedwithyou
INSTALL
IMPORT
SIG · PYOBJC-FRAMEWORK-S
P
pyobjc-framework-sharedwithyou
pythonv12.2
Install
—
Import
—
Disk
—
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.9–3.13
musl
3.9–3.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.10–3.920 runs
build_error
glibc
py 3.10–3.920 runs
build_error
Code
Verified usage

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

SharedWithYou
✓ import SharedWithYou
Imports the entire SharedWithYou framework for access to its classes and functions.

This quickstart demonstrates the fundamental interaction pattern with Objective-C frameworks using PyObjC, specifically showing how to import and interact with a basic Foundation object. Classes within the SharedWithYou framework would be imported and instantiated similarly through the `SharedWithYou` module.

import Foundation import SharedWithYou # Assuming SharedWithYou classes are directly exposed # This example demonstrates basic PyObjC interaction by creating a Foundation object. # Interactions with SharedWithYou classes would follow a similar pattern. # Create an instance of a Foundation object hello_string = Foundation.NSString.stringWith_('Hello from PyObjC SharedWithYou!') print(f"Created Objective-C string: {hello_string}") # You would typically interact with SharedWithYou classes here. # For example, if there was a 'SWYCollaboration' class: # try: # collaboration = SharedWithYou.SWYCollaboration.alloc().init() # print(f"Created SharedWithYou Collaboration object: {collaboration}") # except AttributeError: # print("SWYCollaboration class not found or initialized in this simple example.") print("PyObjC bridge is active and ready to interact with macOS frameworks.")
Debug
Known issues
breakingPyObjC frequently drops support for older Python versions. PyObjC 12.0 dropped support for Python 3.9, and PyObjC 11.0 dropped Python 3.8. Ensure your Python version is compatible with the PyObjC version you are installing.
fix
Upgrade your Python environment to Python 3.10 or later for PyObjC 12.x. Always check `requires_python` on PyPI or the PyObjC changelog for specific version requirements.
affects: >=11.0
breakingPyObjC 11.1 changed how initializer methods (`init` family) are modeled, now correctly reflecting that they 'steal' a reference to `self` and return a new one, as per clang's ARC documentation. This affects object lifecycle and reference counting.
fix
Review code that interacts with object initialization, especially custom subclasses or factory methods, to ensure correct reference handling. While explicit memory management is rarely needed in Python, understanding the underlying Objective-C semantics is crucial for correct behavior.
affects: >=11.1
breakingIn PyObjC 10.3, the ability to call `__init__` when a class or its superclasses contain a user implementation of `__new__` was temporarily dropped, then reintroduced in 10.3.1 due to breaking popular projects. Code relying on PyObjC's provided `__new__` still cannot use `__init__` in this scenario.
fix
If experiencing issues with `__init__` and `__new__` in custom subclasses, ensure you are on PyObjC 10.3.1 or later. If relying on PyObjC's `__new__`, avoid implementing `__init__` in that specific context.
affects: 10.3.0
breakingThe `IMServicePlugIn` framework bindings were removed in PyObjC 10.0 because the framework was deprecated in macOS 10.13 and removed entirely in macOS 14.
fix
Applications relying on `IMServicePlugIn` functionality will need to refactor to use alternative macOS APIs or ensure compatibility with older macOS versions and PyObjC releases.
affects: >=10.0
gotchaPyObjC 11.0 introduced experimental support for free-threading (PEP 703) in Python 3.13. While a significant advancement, it's an experimental feature and may have stability considerations.
fix
Exercise caution when using PyObjC with Python 3.13's experimental free-threading. Thorough testing is recommended for multi-threaded applications. The PyObjC team continues to refine this support.
affects: >=11.0 with Python 3.13+
gotchaAs of PyObjC 12.0, classes `NSString` and `NSMutableString` are marked as 'final', meaning they can no longer be subclassed from Python. Attempting to subclass them will result in crashes due to special handling within PyObjC.
fix
Avoid subclassing `NSString` or `NSMutableString` in Python. If custom string-like behavior is needed, wrap `NSString` instances or use standard Python string types instead.
affects: >=12.0
Upgrade
Version history
12.2latest on PyPI · released May 30, 2026
Audit
Dependencies
pyobjc-corerequiredCore component of the PyObjC bridge.
pyobjc-framework-SharedWithYouCorerequiredProvides core bindings for SharedWithYou functionality.
Agent activity
2 hits · last 30 days
node
2
Resources
pyobjc-framework-sharedwithyou — pip install pyobjc-framework-sharedwithyou · libregistry