skillfed

pyobjc-framework-MetalPerformanceShaders

Wrappers for the framework MetalPerformanceShaders on macOS

pyobjc-framework-metalperformanceshaders v12.2.2 656.9K downloads/30d#5,484 on PyPI803
Permissive license MIT Active released

What it is and what it does

This package wraps Apple's MetalPerformanceShaders framework, making GPU-accelerated compute and graphics operations available to Python developers on macOS. It sits on top of pyobjc-core and pyobjc-framework-Metal, translating Objective-C APIs into Python bindings so you can call MPS functions directly from your code.

The package does not include its own documentation; instead, it relies on Apple's official MetalPerformanceShaders documentation and PyObjC's general translation guidelines. It's intended for developers who need low-level GPU acceleration on macOS and are comfortable consulting external framework documentation. Installation is restricted to macOS with Python 3.10 or later, and wheels are provided for multiple Python versions and architectures (Intel and Apple Silicon).

Use it for:

  • Accelerate numerical computations (matrix operations, convolutions) on macOS GPU hardware.
  • Build machine learning inference pipelines that leverage Metal performance shaders.
  • Optimize image and signal processing tasks by offloading compute to the GPU.
  • Integrate GPU-accelerated operations into existing Python applications on macOS.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings to Apple's MetalPerformanceShaders framework on macOS, enabling GPU-accelerated compute and graphics operations from Python code.

Yes, if you are developing on macOS and need GPU-accelerated compute from Python. The package is actively maintained, has no known vulnerabilities, and provides direct access to Apple's high-performance GPU framework. Install only if you are on macOS with Python 3.10+; it is not portable to other platforms.

Install

pyobjc-framework-metalperformanceshaders on PyPI

pip

pip install pyobjc-framework-metalperformanceshaders

uv

uv add pyobjc-framework-metalperformanceshaders

poetry

poetry add pyobjc-framework-metalperformanceshaders

Installing pyobjc-framework-MetalPerformanceShaders

Before you install

Medium install friction due to platform and architecture constraints—wheels are macOS-only (universal2 binaries for Intel and Apple Silicon) and require specific Python versions (3.10–3.15). Active maintenance with a recent release (3 days old) and steady repository activity.

License in practice

MIT license is permissive; you can use, modify, and distribute this package with minimal legal restrictions.

Quickstart

pip install pyobjc-framework-metalperformanceshaders

import MetalPerformanceShaders
# Access MPS classes via the framework binding

macOS only; requires Python 3.10 or later; depends on pyobjc-core and pyobjc-framework-Metal runtime dependencies.

Verify before relying

  • Whether the package includes type hints or stubs for IDE support.
  • Performance characteristics compared to direct Metal or NumPy for common compute tasks.
  • Availability of examples or tutorials beyond Apple's official MPS documentation.

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-Metal
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 656,881/month — #5,484 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyobjc_framework_metalperformanceshaders-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_metalperformanceshaders-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl

Keywords: PyObjC, MetalPerformanceShaders

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

metal performance shaders pythongpu acceleration macosapple metal framework bindingsmetalperformanceshaders wrappermacos gpu compute python
gpu-accelerationmacos-onlymetal-framework

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

Provides Python bindings to Apple's Metal…

permissive · top 15,000 on PyPI

pyobjc-framework-MetalPerformanceShadersGraph

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-MetalKit

Provides Python bindings for Apple's MetalKit…

permissive · top 15,000 on PyPI

pyobjc-framework-MetalFX

Provides Python bindings to Apple's MetalFX…

permissive · top 15,000 on PyPI

pyobjc-framework-MLCompute

Provides Python bindings to Apple's MLCompute…

permissive · top 15,000 on PyPI

pyobjc-framework-IOSurface

Provides Python bindings to macOS's IOSurface…

permissive · top 15,000 on PyPI

pyobjc-framework-ModelIO

Provides Python bindings to Apple's ModelIO…

permissive · top 15,000 on PyPI

pyobjc-framework-BrowserEngineKit

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

wgpu

wgpu-py provides a Python binding to WebGPU, a…

permissive · top 15,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI