defaults

Python wrapper for Mac OS user defaults system


Keywords
hyperparameters, hparams, configurable
License
MIT
Install
pip install defaults==0.3.0

Documentation

Features

  • read/write/delete Mac OS user defaults values

Platforms

  • Mac OS

Installing

from pypi.python.org

sudo pip install defaults

from github

sudo pip install git+git://github.com/cancerhermit/defaults.py.git

Usage

read(domain,key[ ,default])

from defaults import read
read("com.apple.iCal",'Disable all alarms')
>>> True
read("com.apple.iCal",'not existing',False) # read default value
>>> False

write(domain,key,value)

from defaults import write
write("com.apple.iCal",'Disable all alarms',False)

Manual pages