Skip to main content

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

Links

python-readme-generator

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page