Skip to main content

launchd.plist class

Project description


$ [sudo] pip install launchd-plist


  • Capitalized attrs and properties identified as launchd.plist keys (custom keys also supported)


class __doc__
launchd_plist.Plist launchd.plist class


function __doc__ return a dictionary with a plist file data
launchd_plist.update(path, **kwargs) update a plist file
launchd_plist.write(path, data) write a dictionary to a plist file


>>> class MyPlist(launchd_plist.Plist):
    Label = "MyPlist"
    StartInterval = 1
    Custom_key = "works"

    def StandardErrorPath(self):
        return os.path.expanduser("~/Logs/LaunchAgents/%s/err.log" % self.Label)

>>> MyPlist().create('launchd.plist')


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
    <string>works for Capitalized keys!</string>

Related projects



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 launchd-plist, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size launchd-plist-2019.4.13.tar.gz (3.3 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