skillfed

pyobjc-framework-CoreHaptics

Wrappers for the framework CoreHaptics on macOS

pyobjc-framework-corehaptics v12.2.2 650.0K downloads/30d#5,569 on PyPI803
Permissive license MIT Active released

What it is and what it does

This package wraps Apple's CoreHaptics framework, making it accessible from Python on macOS. CoreHaptics is the system framework for controlling haptic feedback on compatible Apple devices—primarily MacBook trackpads and other hardware with haptic motors. The wrapper translates between Python and Objective-C, allowing you to create and play haptic patterns programmatically.

The package is part of PyObjC and does not include its own documentation; instead, you rely on Apple's CoreHaptics documentation for framework concepts and PyObjC's general documentation for Python-to-Objective-C translation patterns. It depends on pyobjc-core and pyobjc-framework-Cocoa, and requires Python 3.10 or later on macOS.

Use it for:

  • Add haptic feedback to macOS applications when users interact with UI elements or receive notifications.
  • Create immersive gaming experiences on MacBook trackpads by triggering haptic patterns during gameplay.
  • Build accessibility features that provide tactile feedback for users who benefit from haptic cues.
  • Prototype or test haptic patterns for macOS applications without writing Objective-C directly.

Worth the install?

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

Provides Python bindings to Apple's CoreHaptics framework on macOS, enabling haptic feedback control from Python code.

Yes, if you are developing on macOS and need to control haptic feedback from Python. The package is actively maintained, has no known vulnerabilities, and installs with low friction. The main caveat is that you must consult Apple's CoreHaptics documentation separately, as this wrapper provides bindings only, not a high-level Python API.

Install

pyobjc-framework-corehaptics on PyPI

pip

pip install pyobjc-framework-corehaptics

uv

uv add pyobjc-framework-corehaptics

poetry

poetry add pyobjc-framework-corehaptics

Installing pyobjc-framework-CoreHaptics

Before you install

Low friction installation as a pure-Python wheel. Actively maintained with a release 3 days old and recent commits; part of the larger PyObjC ecosystem with 803 repository stars.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions.

Quickstart

pip install pyobjc-framework-corehaptics

from CoreHaptics import CHHapticEngine
# Requires macOS 10.15+ and a compatible device; consult Apple's CoreHaptics documentation for pattern creation and playback.

macOS 10.15 or later required; CoreHaptics is not available on other operating systems. Requires Python 3.10 or later.

Verify before relying

  • Whether CoreHaptics API coverage is complete or if some framework features remain unbound.
  • Whether haptic pattern complexity or timing precision meets real-world application requirements.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pyobjc-core, pyobjc-framework-Cocoa
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 650,045/month — #5,569 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyobjc_framework_corehaptics-12.2.2-py2.py3-none-any.whl

Keywords: PyObjC, CoreHaptics

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 haptic feedback pythoncorehaptics python bindingspyobjc hapticsmacos vibration controlpython haptic engine
macos-onlyhardware-control

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

Provides Python bindings to macOS's CoreAudio…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreMIDI

Provides Python bindings to macOS's CoreMIDI…

permissive · top 15,000 on PyPI

pyobjc-framework-SharedWithYouCore

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-PHASE

Provides Python bindings to Apple's PHASE…

permissive · top 15,000 on PyPI

pyobjc-framework-PhotosUI

Provides Python bindings to macOS's PhotosUI…

permissive · top 15,000 on PyPI

pyobjc-framework-BrowserEngineKit

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

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-MapKit

Provides Python bindings to Apple's MapKit…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreMotion

Provides Python bindings to macOS's CoreMotion…

permissive · top 15,000 on PyPI