skillfed

pyobjc-framework-OSAKit

Wrappers for the framework OSAKit on macOS

pyobjc-framework-osakit v12.2.2 655.9K downloads/30d#5,502 on PyPI803
Permissive license MIT Active released

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

uv

uv add pyobjc-framework-osakit

poetry

poetry add pyobjc-framework-osakit

Installing 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

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

applescript python bindingsosascript from pythonmacos automation pythonosakit python wrapperapplescript execution pythonmacos scripting bridge python
macos-onlyapplescriptsystem-automation

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

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-ScriptingBridge

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-AppleScriptObjC

Provides Python bindings to 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-AutomaticAssessmentConfiguration

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-MailKit

Provides Python bindings to macOS's MailKit…

permissive · top 15,000 on PyPI

pyobjc-framework-SafetyKit

Provides Python bindings to macOS's SafetyKit…

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-framework-SystemExtensions

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI