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.3.22.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for launchctl-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03b314d96cdb36e3df96d12e736371ed8e7c4670f98a27796e7eeeb54b8adc62 |
|
MD5 | f830d67e5320fe5787c80515f025b10d |
|
BLAKE2b-256 | 880cb2628f9993362f17f159f452e379b3474a7eaa9b43c949a056ea8796a58e |