skillfed

pyobjc-framework-MetricKit

Wrappers for the framework MetricKit on macOS

pyobjc-framework-metrickit v12.2.2 652.7K downloads/30d#5,542 on PyPI803
Permissive license MIT Active released

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-metrickit

uv

uv add pyobjc-framework-metrickit

poetry

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 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS X :: CocoaIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XProgramming Language :: Objective CProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Free Threading :: 3 - StableProgramming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User Interfaces

Tags

macos metrickit python bindingsapple performance metrics collectionpyobjc metrickit wrappermacos diagnostic metrics pythonobjective-c metrickit bridge
macos-onlypyobjc-frameworkperformance-monitoring

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

pyobjc-framework-ClassKit

Provides Python bindings to Apple's ClassKit…

permissive · top 15,000 on PyPI

pyobjc-framework-AutomaticAssessmentConfiguration

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-Vision

Provides Python bindings to macOS's Vision…

permissive · top 5,000 on PyPI

pyobjc-framework-SafetyKit

Provides Python bindings to macOS's SafetyKit…

permissive · top 15,000 on PyPI

pyobjc-framework-MailKit

Provides Python bindings to macOS's MailKit…

permissive · top 15,000 on PyPI

pyobjc-framework-Photos

Provides Python bindings to macOS's Photos…

permissive · top 15,000 on PyPI

pyobjc-framework-CallKit

Provides Python bindings for Apple's CallKit…

permissive · top 15,000 on PyPI

pyobjc-framework-HealthKit

Provides Python bindings to Apple's HealthKit…

permissive · top 15,000 on PyPI

mac-alias

mac_alias generates and reads binary Alias and…

permissive · top 15,000 on PyPI