skip to navigation
skip to content

persistent_pineapple 1.0.0

JSON Settings


Persistent Pineapple provides a simple interface to save settings for applications or other modules. The settings file is in the JSON format for simplicty. A slightly modified JSON format is used to allow for comments and other creature features. Please read the file for more details.


Documentation is hosted on


Download the tarball and install with pip install <package>.


See the unit tests for more in-depth examples. Here are the basics:

Example code

settings = PersistentPineapple('/etc/myapp.json')
print settings.program_name
if settings.debug:
    print "we're in debug mode"
settings.debug = False

Example settings file (/etc/myapp.json)

    // App settings ///////////////////////////////////////////////////////////

    // Name of the program
    "program_name": "myapp",

    // HTTP POST listener port
    "port": 8009,

    // Debugging stuff
    "debug": true,

    // Logging settings
    "console_log_level": "INFO",
File Type Py Version Uploaded on Size
persistent_pineapple-1.0.0.tar.gz (md5) Source 2014-12-02 9KB