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/log/images/<name>.png (customizable)
output:
~/Applications/.appify/<name>.app (customizable)
path/to/alias (optional)
app logs (customizable):
/usr/local/var/log/Applications/<name>/out.log (customizable)
/usr/local/var/log/Applications/<name>/out.log (customizable)
app files:
<name>.app/Contents/MacOS/executable
<name>.app/Contents/MacOS/agent.plist
<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):
name = "app_name"
image = "path/to/image.png"
stdout = "path/to/stdout.log"
stderr = "path/to/stderr.log"
def atexit(self):
os.system("say bye")
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for mac_app-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a608222fe328a1272df44960f7dd249360d138e6573a3449821765c07ea9a272 |
|
MD5 | 52b2bdf5744a4686cbb23bb9b9dc14d7 |
|
BLAKE2b-256 | 34a0a5d32772ee28cf326d2ea6af01ef45af050f14f3a605e41c3151add45f44 |