Skip to main content

No project description provided

Project description

Install

$ [sudo] pip install mac_app

How it works

path/to/<name>.py                                   class Name(mac_app.App)
/usr/local/var/images/<name>.png                    (customizable)

output:
~/Applications/.appify/<name>.app                   (customizable)

app logs:

~/Library/Logs/Applications/<name>/out.log         (customizable)
~/Library/Logs/Applications/<name>/out.log         (customizable)

app files:

<name>.app/Contents/MacOS/executable                bash wrapper (hack to keep app visible)
<name>.app/Contents/MacOS/agent.plist               LaunchAgent
<name>.app/Contents/MacOS/run.py                    (your class file)

Examples

>>> import mac_app
>>> class Name(mac_app.App):
        def run(self):
            pass

    if __name__ == "__main__":
        MyApp().run()

create app and make alias

>>> Name().appify().mkalias("~/alias")

customize

>>> class Name(mac_app.App):
        app_name = "app_name"
        app_path = "path/to/app_name.app"
        app_script = "path/to/script.py"
        app_image = "path/to/image.png"
        app_stdout = "path/to/stdout.log"
        app_stderr = "path/to/stderr.log"

        def atexit(self):
            os.system("say bye")

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

mac_app-0.0.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

mac_app-0.0.3-py2.py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 2 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