--- id: pyobjc-framework-metrickit version: "12.2.2" license: MIT license_treatment: permissive maintenance: active --- # pyobjc-framework-MetricKit — Wrappers for the framework MetricKit on macOS License: permissive · Maintenance: active · Downloads: 652.7K/mo ## What it is and what it does pyobjc-framework-metrickit is a thin wrapper layer that exposes Apple's MetricKit framework to Python code running on macOS. MetricKit is an Apple system framework for collecting performance diagnostics and metrics from applications—things like CPU usage, memory footprint, disk I/O, and battery impact. This package bridges the gap between Python and the native Objective-C framework, allowing Python developers to call MetricKit APIs directly without writing Objective-C code. The package is part of the larger PyObjC project, which provides general-purpose bindings to macOS frameworks. It depends on pyobjc-core (the bridge machinery) and pyobjc-framework-Cocoa (the base macOS framework bindings). The wrapper itself does not include documentation—you are expected to consult Apple's official MetricKit documentation and PyObjC's general translation guides to understand how to use it. Installation is straightforward on macOS but impossible on other platforms. Use it for: - Collect performance metrics from a Python application running on macOS to monitor CPU, memory, and battery usage. - Build macOS system monitoring tools that leverage native MetricKit data collection without writing Objective-C. - Integrate MetricKit diagnostics into Python-based macOS app testing or profiling workflows. - Access low-level performance telemetry in Python scripts running on Apple Silicon or Intel Macs. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to macOS's MetricKit framework, enabling access to performance and diagnostic metrics collection on Apple platforms. Yes, if you are developing on macOS and need access to native MetricKit performance diagnostics from Python. The package is actively maintained, has no known vulnerabilities, and carries a permissive MIT license. Install friction is moderate due to platform specificity and compiled dependencies, but that is unavoidable for any PyObjC framework binding. Not applicable on non-macOS systems. ## Install pip install pyobjc-framework-metrickit uv add pyobjc-framework-metrickit poetry add pyobjc-framework-metrickit ## Installing pyobjc-framework-MetricKit Before you install: Medium install friction due to platform-specific wheels (macOS only) and compiled dependencies on pyobjc-core and pyobjc-framework-Cocoa. Active maintenance with recent release (3 days old) and steady repository activity. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike. Quickstart: pip install pyobjc-framework-metrickit import MetricKit # Access MetricKit framework classes and methods via the wrapper Requires macOS; wheels are platform-specific and only available for macOS 10.9 or later (10.13+ for Python 3.12+). Requires Python 3.10 or later. Verify before relying: - Whether MetricKit bindings cover all framework APIs or only a subset - Performance overhead of the Python-to-Objective-C bridge for metric collection - Compatibility with specific macOS versions beyond the wheel platform tags ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 652.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags macos metrickit python bindings, apple performance metrics collection, pyobjc metrickit wrapper, macos diagnostic metrics python, objective-c metrickit bridge, macos-only, pyobjc-framework, performance-monitoring [View on SkillFed](https://skillfed.io/packages/pyobjc-framework-metrickit) · [View on PyPI](https://pypi.org/project/pyobjc-framework-metrickit/)