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
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.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for mac_app-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a826449503e02ecc642fa785d5cf7bf226408b2075390d1626f2d1c11d2ad492 |
|
MD5 | 1e2cae7b4824bbf911500ae4a67d4a57 |
|
BLAKE2b-256 | a6837fce65169200a13797903b1419e3c610f3fdcf5fa0a78690196d10c256fa |