{"library":"pyobjc-framework-iobluetooth","title":"PyObjC Framework IOBluetooth","description":"PyObjC Framework IOBluetooth is a Python binding for the IOBluetooth framework on macOS. It enables Python applications to interact with Bluetooth devices and services through Objective-C APIs. The library is currently at version 12.1 and typically releases new versions in conjunction with macOS SDK updates and PyObjC core developments, ensuring compatibility with the latest Apple technologies.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install pyobjc-framework-iobluetooth"],"cli":null},"imports":["import IOBluetooth","import objc","from Foundation import NSObject, NSBundle"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import objc\nfrom Foundation import NSBundle\nimport IOBluetooth\n\n# Verify that the IOBluetooth framework is loaded and accessible\nprint(f\"IOBluetooth module loaded: {IOBluetooth is not None}\")\n\nif IOBluetooth is not None:\n    # Access a common class from the IOBluetooth framework, e.g., IOBluetoothDevice\n    # and try to get its bundle identifier to confirm functionality.\n    device_class = IOBluetooth.IOBluetoothDevice\n    if device_class:\n        print(f\"Successfully accessed IOBluetoothDevice class: {device_class}\")\n        # Get the bundle for the class to show a more concrete interaction\n        bundle = NSBundle.bundleForClass_(device_class)\n        if bundle:\n            print(f\"IOBluetooth bundle identifier: {bundle.bundleIdentifier()}\")\n        else:\n            print(\"Could not retrieve bundle for IOBluetoothDevice class.\")\n    else:\n        print(\"Failed to access IOBluetoothDevice class.\")\n","lang":"python","description":"This quickstart demonstrates how to import the `IOBluetooth` framework using PyObjC and perform a basic check by accessing a class (`IOBluetoothDevice`) and its associated bundle. This confirms the successful loading and accessibility of the Objective-C framework through Python. For more in-depth usage, refer to Apple's IOBluetooth documentation.","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-iobluetooth","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-iobluetooth","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.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pyobjc-framework-iobluetooth","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-iobluetooth","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.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pyobjc-framework-iobluetooth","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-iobluetooth","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.9,"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-iobluetooth","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-iobluetooth","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":2.5,"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-iobluetooth","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-iobluetooth","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":3.4,"import_time_s":null,"mem_mb":null,"disk_size":null}]}}