pyobjc-framework-OSAKit
Wrappers for the framework OSAKit on macOS
What it is and what it does
This package wraps Apple's OSAKit framework, which provides access to Open Scripting Architecture on macOS. It lets you execute AppleScript and other OSA-compatible scripts directly from Python, enabling automation of macOS applications and system tasks that would otherwise require shell invocation of osascript or direct AppleScript editing.
The package is a thin binding layer—it does not include its own documentation, instead directing users to Apple's OSAKit documentation and PyObjC's general translation guides. It depends on pyobjc-core and pyobjc-framework-Cocoa to bridge Python and Objective-C, and supports modern Python versions (3.10 through 3.15).
Use it for:
- Automate macOS applications (Finder, Mail, etc.) from Python scripts without shelling out to osascript.
- Build cross-application workflows that coordinate multiple macOS apps via AppleScript.
- Embed AppleScript execution in Python applications that need tight macOS system integration.
- Programmatically control system tasks like file operations or app launching via OSA.
- Integrate legacy AppleScript logic into modern Python codebases.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to macOS's OSAKit framework, enabling programmatic control of Open Scripting Architecture (OSA) and AppleScript execution from Python.
Yes, if you are on macOS and need to execute AppleScript or OSA scripts from Python. The package is actively maintained, has no known vulnerabilities, and low install friction. However, it is macOS-only and requires understanding of both PyObjC's translation layer and Apple's OSAKit API; the lack of bundled documentation means you will need to consult external resources.
Install
pyobjc-framework-osakit on PyPI
pip
pip install pyobjc-framework-osakituv
uv add pyobjc-framework-osakitpoetry
poetry add pyobjc-framework-osakitInstalling pyobjc-framework-OSAKit
Before you install
Low friction installation; actively maintained with a release 3 days ago. Depends on pyobjc-core and pyobjc-framework-Cocoa, both part of the same PyObjC ecosystem.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install pyobjc-framework-osakit
from OSAKit import OSALanguage, OSAScript
script = OSAScript.alloc().initWithSource_language_('tell app "Finder" to activate', OSALanguage.defaultLanguage())
script.executeAndReturnError_(None)
macOS only; requires Python 3.10 or later and a working Objective-C bridge via pyobjc-core.
Verify before relying
- Whether the package includes type hints or stubs for IDE support
- Performance characteristics when executing complex or long-running AppleScripts
- Compatibility with non-CPython implementations beyond the listed classifiers
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 | 655,925/month — #5,502 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_osakit-12.2.2-py2.py3-none-any.whl
Keywords: PyObjC, OSAKit
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-AppleScriptKitProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-ScriptingBridgeProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-AppleScriptObjCProvides Python bindings to 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-AutomaticAssessmentConfigurationProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-MailKitProvides Python bindings to macOS's MailKit…
permissive · top 15,000 on PyPI
pyobjc-framework-SafetyKitProvides Python bindings to macOS's SafetyKit…
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
pyobjc-framework-SystemExtensionsProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI