pyobjc-framework-Cocoa
Wrappers for the Cocoa frameworks on macOS
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-cocoauv
uv add pyobjc-framework-cocoapoetry
poetry add pyobjc-framework-cocoaInstalling 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
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-CoreMLProvides Python bindings to Apple's CoreML…
permissive · top 5,000 on PyPI
pyobjc-framework-NetworkProvides Python bindings to Apple's Network…
permissive · top 15,000 on PyPI
pyobjc-framework-SharedWithYouCoreProvides Python bindings for Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-ClassKitProvides Python bindings to Apple's ClassKit…
permissive · top 15,000 on PyPI
pyobjc-framework-SystemExtensionsProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-ContactsProvides Python bindings to macOS's Contacts…
permissive · top 15,000 on PyPI
pyobjc-framework-SafariServicesProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-ScreenSaverProvides Python bindings to macOS's ScreenSaver…
permissive · top 15,000 on PyPI
pyobjcPyObjC bridges Python and Objective-C, enabling…
permissive · top 15,000 on PyPI
pyobjc-framework-FileProviderProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI