Skip to main content

Make it easier to write Mac apps in Python

Project description

Make it easier to write small applications for macOS in Python, using Twisted.

To get a very basic status menu API:

 from quickmacapp import mainpoint, Status, answer, quit
 from twisted.internet.defer import Deferred

 @mainpoint()
 def app(reactor):
     s = Status("☀️ 💣")
     s.menu([("Do Something", lambda: Deferred.fromCoroutine(answer("something"))),
             ("Quit", quit)])
 app.runMain()

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quickmacapp-2023.4.24.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

quickmacapp-2023.4.24-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page