pyobjc-framework-MetricKit
Wrappers for the framework MetricKit on macOS
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 on this page — 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
pyobjc-framework-metrickit on PyPI
pip
pip install pyobjc-framework-metrickituv
uv add pyobjc-framework-metrickitpoetry
poetry add pyobjc-framework-metrickitInstalling 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 the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — pyobjc-core, pyobjc-framework-Cocoa |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 652,692/month — #5,542 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_metrickit-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_metrickit-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl
Keywords: PyObjC, MetricKit
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyobjc-framework-ClassKitProvides Python bindings to Apple's ClassKit…
permissive · top 15,000 on PyPI
pyobjc-framework-AutomaticAssessmentConfigurationProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-NetworkProvides Python bindings to Apple's Network…
permissive · top 15,000 on PyPI
pyobjc-framework-VisionProvides Python bindings to macOS's Vision…
permissive · top 5,000 on PyPI
pyobjc-framework-SafetyKitProvides Python bindings to macOS's SafetyKit…
permissive · top 15,000 on PyPI
pyobjc-framework-MailKitProvides Python bindings to macOS's MailKit…
permissive · top 15,000 on PyPI
pyobjc-framework-PhotosProvides Python bindings to macOS's Photos…
permissive · top 15,000 on PyPI
pyobjc-framework-CallKitProvides Python bindings for Apple's CallKit…
permissive · top 15,000 on PyPI
pyobjc-framework-HealthKitProvides Python bindings to Apple's HealthKit…
permissive · top 15,000 on PyPI
mac-aliasmac_alias generates and reads binary Alias and…
permissive · top 15,000 on PyPI