Skip to main content

LaunchAgents management (MacOS)

Project description

Install

$ [sudo] pip install launchagents

Features

  • python functions, cli, colorize

Examples

find(path) - find .plist files

>>> launchagents.find()
['~/Library/LaunchAgents/com.google.keystone.agent.plist',...]

read(path) - read .plist into dictionary

>>> launchagents.read("/Users/username/Library/LaunchAgents/com.google.keystone.agent.plist")
{'Label': 'com.google.keystone.user.agent',...}
CLI
$ python -m launchagents.load
$ python -m launchagents.list
$ python -m launchagents.unload
$ python -m launchagents.logs.create    # create StandardErrorPath and StandardOutPath logs
$ python -m launchagents.logs.err       # not empty StandardErrorPath logs
$ python -m launchagents.logs.out       # not empty StandardOutPath logs
$ python -m launchagents.colorize  # gray - unloaded, red - exit status != 0

customize - pass path, for example: python -m launchagents.load path/to/custom/LaunchAgents

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
launchagents-0.0.4-py2.py3-none-any.whl (6.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3
launchagents-0.0.4.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page