Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

JSON Settings

Project Description


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",
Release History

Release History

This version
History Node


History Node

History Node

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
persistent_pineapple-1.0.0.tar.gz (10.1 kB) Copy SHA256 Checksum SHA256 Source Dec 2, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting