{"library":"pyobjc-framework-corewlan","title":"PyObjC CoreWLAN Framework Bindings for macOS","description":"The `pyobjc-framework-corewlan` package provides Python bindings for Apple's CoreWLAN framework on macOS. It allows Python applications to interact with Wi-Fi interfaces, retrieve network information, and manage wireless connections. It is part of the larger PyObjC project, which bridges Python and Objective-C, enabling Python developers to leverage macOS Cocoa frameworks directly. The current version is 12.1, with a regular release cadence aligned with macOS SDK updates and Python version support.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install pyobjc-framework-CoreWLAN"],"cli":null},"imports":["import CoreWLAN"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import CoreWLAN\n\ndef get_wifi_info():\n    try:\n        # Get the default wireless interface\n        interface = CoreWLAN.CWInterface.interface()\n\n        if interface:\n            print(f\"Current Wi-Fi interface Hardware Address: {interface.hardwareAddress()}\")\n            print(f\"Current Wi-Fi Power Status: {'On' if interface.powerOn() else 'Off'}\")\n\n            current_ssid = interface.ssid()\n            if current_ssid:\n                print(f\"Currently connected to network: {current_ssid}\")\n            else:\n                print(\"Not currently connected to a Wi-Fi network.\")\n\n            # List available Wi-Fi networks\n            print(\"\\nAvailable Wi-Fi Networks:\")\n            for network in CoreWLAN.CWInterface.interface().cachedScanResults():\n                print(f\"  - SSID: {network.ssid()}, RSSI: {network.rssiValue()} dBm\")\n\n        else:\n            print(\"No Wi-Fi interface found.\")\n\n    except Exception as e:\n        print(f\"An error occurred: {e}\")\n        print(\"Note: Accessing CoreWLAN functionality, especially for modifications, often requires a properly signed application or elevated privileges on macOS.\")\n\nif __name__ == \"__main__\":\n    get_wifi_info()","lang":"python","description":"This quickstart demonstrates how to import the CoreWLAN framework and retrieve basic information about the Wi-Fi interface and available networks. Note that modifying Wi-Fi settings (e.g., turning power on/off) typically requires a properly signed application or administrative privileges on macOS, and is not included in this basic example.","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-CoreWLAN","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-CoreWLAN","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.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pyobjc-framework-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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-CoreWLAN","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}]}}