{"library":"pyobjc-framework-kernelmanagement","title":"PyObjC KernelManagement Framework","description":"pyobjc-framework-kernelmanagement provides Python wrappers for the macOS KernelManagement framework. It enables Python applications to interact with kernel extensions and manage kernel-level operations on macOS. The library is part of the larger PyObjC project, currently at version 12.1, and typically releases updates aligned with macOS SDK changes and Python version support.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install pyobjc-framework-kernelmanagement"],"cli":null},"imports":["from KernelManagement import KMUserClient","from Foundation import NSObject"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import objc\nfrom KernelManagement import KMUserClient\nfrom Foundation import NSObject # Core PyObjC framework\n\nprint(f\"PyObjC version: {objc.__version__}\")\n\n# Verify that the KernelManagement framework's classes are accessible\n# This only works on macOS systems.\nif objc.platform == 'mac':\n    if hasattr(KMUserClient, 'alloc'):\n        print(f\"KMUserClient class found from KernelManagement framework: {KMUserClient}\")\n        print(f\"Is KMUserClient an Objective-C class? {isinstance(KMUserClient, objc.objc_class)}\")\n    else:\n        print(\"KMUserClient class is available but lacks expected methods (ensure framework is loaded).\")\n\n    # A basic PyObjC interaction demonstrating the bridge with a common class\n    ns_object_instance = NSObject.alloc().init()\n    print(f\"Created a basic NSObject instance: {ns_object_instance}\")\nelse:\n    print(\"PyObjC and its framework bindings are macOS-specific and cannot run on this platform.\")","lang":"python","description":"This quickstart demonstrates importing a class from the KernelManagement framework and verifying its Objective-C type. It also includes a basic interaction with `NSObject` from the core Foundation framework to show general PyObjC functionality. Note that `pyobjc-framework-kernelmanagement` is exclusively for macOS.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":null,"pypi_latest":"12.1","is_stale":null,"summary":{"python_range":"3.10–3.9","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3.3,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3.2,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.6,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pyobjc-framework-kernelmanagement","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3.8,"import_time_s":null,"mem_mb":null,"disk_size":null}]}}