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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mac_app-0.0.1.tar.gz.
File metadata
- Download URL: mac_app-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778135001ac6e6e50a30a22b80182b3f7f5bc40c4e178083404404cd6b9a23a4
|
|
| MD5 |
070f872d341a92b752a8d9a92a129455
|
|
| BLAKE2b-256 |
a821311571c7f72627bbb29ced54e6ca21970d587e987ab116b5f03f94024fca
|
File details
Details for the file mac_app-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: mac_app-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a608222fe328a1272df44960f7dd249360d138e6573a3449821765c07ea9a272
|
|
| MD5 |
52b2bdf5744a4686cbb23bb9b9dc14d7
|
|
| BLAKE2b-256 |
34a0a5d32772ee28cf326d2ea6af01ef45af050f14f3a605e41c3151add45f44
|