launchd.plist model
Project description
Install
$ [sudo] pip install django-launchd
Examples
init
import django_launchd
from django_launchd.models import Plist
files = django_launchd.files("~/Library/LaunchAgents")
for f in files:
Plist.objects.get_or_create(path=f)
Plist.objects.exclude(path__in=files).delete()
locks
for agent in filter(lambda a: a.exists, Plist.objects.all()):
if <condition>:
agent.lock("key")
else:
agent.unlock("key")
load/unload
for agent in filter(lambda a: a.exists, Plist.objects.all()):
if agent.locks:
agent.unload()
else:
agent.load()
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_launchd-2019.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2af7a0f53a15b1ca58af0e2bfaaf7410861e31c6ca1aba9a216ec8570c8fbe |
|
MD5 | ce494f0d6ca94717190448b589df9765 |
|
BLAKE2b-256 | 2b23507fcee2fe27c9ad695f994c7f47dd05d4f4162666577534788040fd9dbf |