Skip to main content

The launchd parser and manager for Python

Project description

launchdman is a parser and manager for launchd, the service management framework used by macOS. If you want to schedule to run certain tasks or programs, or run them in certain conditions, launcd is what you use on macOS. launchdman lets you build your configurations and manage(add, remove, group, etc) them on the fly.

Inspired by schedule module.

Features

  • A simple to use API for creating and managing launchd configurations.
  • Very lightweight and no external dependencies.

Quick Start

pip3 install launchdman
from launchdman import *

# Label and Program are must-haves
job.add(Label('job'), Program('/usr/local/bin/job'))

# I want it to run at load
job.add(RunAtLoad())

# write to plist
job.write()

# add a configuration
job.add(StartInterval().every(10).minute)

# remove a configuration
job.remove(RunAtLoad())

Documentation

For documentation, check ReadTheDocs

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 launchdman, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size launchdman-0.1.2-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 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