Skip to content

ronaldoussoren/objc_asyncio

Folders and files

NameName
Last commit message
Last commit date
Jun 21, 2020
Jun 21, 2020
May 23, 2020
Jun 21, 2020
Apr 13, 2020
Jun 16, 2020
Mar 24, 2020
Mar 24, 2020
Mar 29, 2020
Jun 7, 2020
Jun 16, 2020
May 11, 2020
Jun 16, 2020
Jun 4, 2020

Repository files navigation

WARNING: This library is basically completely untested at this point

Objc_asyncio is a library that implements an asyncio runloop using the Cocoa CFRunLoop, which makes it possible to integrate macOS GUIs and asyncio.

The basic usage in command-line scripts is to call objc_asyncio.install and then use asyncio as usual.

The more interesting use-case are GUI programs using PyObjC, in which case you can use the running_loop context manager:

::

import sys import Cocoa

import objc_asyncio

with objc_asyncio.running_loop():
Cocoa.NSApplicationMain(sys.argv)

About

asyncio eventloop for Cocoa GUIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages