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.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file launchdman-0.1.2-py3-none-any.whl.
File metadata
- Download URL: launchdman-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0d5ca4ff88c396cfd549d59609a13020a891986a506c61bc07aa2c4efb4d1cd
|
|
| MD5 |
1ce3f4cf0cf312d89dda85c210b70313
|
|
| BLAKE2b-256 |
142fdf55e56425632260abfa86f66dec3cc5555d007d6c808f9c3d55d0d54fd0
|