skillfed

pyobjc-framework-Cocoa

Wrappers for the Cocoa frameworks on macOS

pyobjc-framework-cocoa v12.2.2 3.1M downloads/30d#2,764 on PyPI803
Permissive license MIT Active released

What it is and what it does

This package provides Python bindings to Apple's core Cocoa frameworks on macOS, enabling developers to call native Objective-C APIs directly from Python code. It wraps CoreFoundation, Foundation, and AppKit—the fundamental frameworks for macOS application development—allowing access to system services, UI components, and low-level APIs without leaving Python.

The bindings are thin wrappers that translate Python calls into Objective-C method invocations, making it possible to build native macOS applications, system utilities, and integrations with macOS-specific features. It depends on pyobjc-core for the bridging infrastructure. The package does not include documentation for the frameworks themselves; users must refer to Apple's official documentation and PyObjC's translation guides to understand how to use the underlying APIs.

Use it for:

  • Build native macOS GUI applications using AppKit directly from Python without a separate UI framework.
  • Access macOS system APIs and services from Python scripts and automation tools.
  • Create macOS system utilities that integrate with native frameworks and system services.
  • Wrap or extend existing Objective-C libraries and frameworks for use in Python projects on macOS.
  • Develop Python applications with macOS-specific code paths using native APIs.

Worth the install?

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

Provides Python bindings to macOS Cocoa frameworks (CoreFoundation, Foundation, AppKit) for building native macOS applications and accessing system APIs.

Yes, if you are developing on macOS and need direct access to native Cocoa frameworks. The package is actively maintained, has no known vulnerabilities, and uses a permissive MIT license. Install friction is moderate due to platform specificity and compiled dependencies, but this is unavoidable for Objective-C bridging. Not applicable on non-macOS platforms.

Install

pyobjc-framework-cocoa on PyPI

pip

pip install pyobjc-framework-cocoa

uv

uv add pyobjc-framework-cocoa

poetry

poetry add pyobjc-framework-cocoa

Installing pyobjc-framework-Cocoa

Before you install

Medium install friction due to platform-specific wheels (macOS only) and compiled dependencies on pyobjc-core. Actively maintained with a recent release (3 days old) and steady repository activity.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for proprietary macOS applications.

Quickstart

pip install pyobjc-framework-cocoa

import pyobjc_framework_cocoa

macOS only; requires Python 3.10 or later; requires pyobjc-core as a runtime dependency.

Verify before relying

  • Whether the package includes or requires separate installation of Apple's Xcode Command Line Tools or other system dependencies beyond pyobjc-core.
  • Performance characteristics when bridging between Python and Objective-C for compute-intensive operations.
  • Specific usage patterns and API translation rules for calling Objective-C methods from Python code.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 1 — pyobjc-core
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 3,075,172/month — #2,764 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

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

Keywords: PyObjC, Cocoa, CoreFoundation, Foundation, AppKit

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 cocoa bindings pythonobjective-c wrapper pythonappkit foundation frameworknative macos gui pythoncocoa framework bindings
macos-nativeobjective-c-bridge

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

Provides Python bindings to Apple's CoreML…

permissive · top 5,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-SharedWithYouCore

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-ClassKit

Provides Python bindings to Apple's ClassKit…

permissive · top 15,000 on PyPI

pyobjc-framework-SystemExtensions

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-Contacts

Provides Python bindings to macOS's Contacts…

permissive · top 15,000 on PyPI

pyobjc-framework-SafariServices

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-ScreenSaver

Provides Python bindings to macOS's ScreenSaver…

permissive · top 15,000 on PyPI

pyobjc

PyObjC bridges Python and Objective-C, enabling…

permissive · top 15,000 on PyPI

pyobjc-framework-FileProvider

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI