Skip to main content

MacOS launchctl

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

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.

Files for launchctl, version 2019.3.12
Filename, size File type Python version Upload date Hashes
Filename, size launchctl-2019.3.12-py2.py3-none-any.whl (2.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size launchctl-2019.3.12.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page