launchctl python interface
Project description
Installation
$ [sudo] pip install launchctl
Classes
| class | __doc__ |
|---|---|
launchctl.Job |
launchctl Job class. attrs: pid, status, label |
Functions
| function | __doc__ |
|---|---|
launchctl.job(label) |
return launchctl Job by label |
launchctl.jobs() |
return a list of launchctl jobs |
launchctl.load(args) |
launchctl load args ... |
launchctl.remove(label) |
launchctl remove label |
launchctl.start(label) |
launchctl start label |
launchctl.stop(label) |
launchctl stop label |
launchctl.unload(args) |
launchctl unload args ... |
Examples
import launchctl
for job in launchctl.jobs():
print("%s %s %s" % (job.pid if job.pid else "", job.status, job.label))
launchctl.job("com.apple.Finder")
{...}
Related projects
launchd-env- launchd.plist environment variableslaunchd-exec- execute script via launchdlaunchd-generator- launchd.plist generatorlaunchd-logs- launchd.plist logslaunchctl.py
Links
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
launchctl-2019.4.13.tar.gz
(2.3 kB
view details)
File details
Details for the file launchctl-2019.4.13.tar.gz.
File metadata
- Download URL: launchctl-2019.4.13.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48d81596f0aff3e32c677a29e312f63f6f62479bcfb729c950ee2ca6a84eb55
|
|
| MD5 |
6f73985d5b1fb894a01439882556d209
|
|
| BLAKE2b-256 |
f84616279b33af0fc81bf66c56c5f7b4d9a372cce2007ab30c395f33517bdfff
|