The Toga backend for macOS is toga-cocoa.


toga-cocoa requires macOS 11 (Big Sur) or newer.


toga-cocoa is installed automatically on macOS machines (machines that report sys.platform == 'darwin'), or can be manually installed by running invoking:

$ python -m pip install toga-cocoa

Implementation details#

toga-cocoa uses the macOS AppKit Objective-C APIs to build apps. It uses Rubicon Objective-C to provide a bridge to the native AppKit libraries from Python.