Registry / type-stubs / pyobjc-framework-executionpolicy

pyobjc-framework-executionpolicy

JSON →
library12.2pypypiunverified

PyObjC is a bridge between Python and Objective-C, enabling Python scripts to interact with macOS frameworks and Cocoa libraries. This specific package, `pyobjc-framework-executionpolicy`, provides Python bindings for Apple's ExecutionPolicy framework. It is actively maintained with releases frequently updated to support new macOS SDKs and Python versions. The current version is 12.1.

pip install pyobjc-framework-executionpolicy
INSTALL
IMPORT
SIG · PYOBJC-FRAMEWORK-E
P
pyobjc-framework-executionpolicy
type-stubspythonv12.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.

ExecutionPolicy
from ExecutionPolicy import *
Framework classes, functions, and constants are imported directly from the package named after the framework.

This quickstart demonstrates the general PyObjC import pattern for a framework, using `Foundation` for a simple interaction. To utilize the `ExecutionPolicy` framework specifically, you would import its relevant classes and functions and interact with them as per Apple's ExecutionPolicy API documentation.

import objc from Foundation import NSString, NSLog from ExecutionPolicy import * def main(): # Example using Foundation, as direct ExecutionPolicy framework usage # often requires specific macOS context and knowledge of its APIs. hello_string = NSString.stringWithString_("Hello from PyObjC and ExecutionPolicy context!") NSLog("%@", hello_string) # To interact with the ExecutionPolicy framework, you would typically # call specific functions or instantiate classes from the 'ExecutionPolicy' # module, according to Apple's documentation for the framework. # For example, if a function 'EPCopyAssessmentInfo' exists: # try: # info = EPCopyAssessmentInfo("/Applications/Safari.app") # NSLog("Assessment Info: %@", info) # except Exception as e: # NSLog("Could not get assessment info: %@", str(e)) if __name__ == "__main__": main()
Debug
Known issues
breakingPyObjC 12.0 dropped support for Python 3.9. Projects using older Python versions must upgrade to 3.10 or newer.
fix
Upgrade your Python environment to Python 3.10 or a later supported version.
affects: >=12.0
breakingPyObjC 11.0 dropped support for Python 3.8. Projects using this version must upgrade their Python environment.
fix
Upgrade your Python environment to Python 3.9 or a later supported version.
affects: >=11.0, <12.0
breakingPyObjC 11.1 aligned its Automatic Reference Counting (ARC) behavior for 'init' family methods to strictly follow `clang`'s documentation. This change affects how references to 'self' are managed by initializer methods, which now steal a reference to self and return a new one.
fix
Review any custom Objective-C initializer methods implemented in Python subclasses to ensure correct reference handling in line with ARC principles.
affects: >=11.1
gotchaPyObjC automatically disables Key-Value Observing (KVO) for subclasses of `NSProxy` defined in Python.
fix
Be aware that KVO functionality will not be available for Python-defined `NSProxy` subclasses. Implement custom observation mechanisms if needed.
affects: >=12.1
Upgrade
Version history
12.2latest on PyPI · released May 30, 2026
Audit
Dependencies
pyobjc-corerequiredProvides the core Python to Objective-C bridge functionality that all framework wrappers rely on.
Agent activity
20 hits · last 30 days
node
16
OpenAI (training)
4
Resources
pyobjc-framework-executionpolicy — pip install pyobjc-framework-executionpolicy · libregistry