/QuickMacApp

framework for quickly developing macOS applications in Python with Twisted

Primary LanguagePythonOtherNOASSERTION

QuickMacApp

Note

This is extremely rough and poorly documented at this point. While its public API is quite small to avoid undue churn, it may change quite rapidly and if you want to use this to ship an app you probably will want to contribute to it as well.

Make it easier to write small applications for macOS (that use Twisted).

To get a very basic status menu API:

from quickmacapp import mainpoint, Status, quit

@mainpoint()
def app(reactor: IReactorTime):
    Status("☀️ 💣").menu([("Do Something", lambda: print("something")),
                         ("Quit", quit)])

Packaging this into a working app bundle is currently left as an exercise for the reader.

This was originally extracted from https://github.com/glyph/Pomodouroboros/