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!

Buildout recipe to export buildout configuration to JSON file.

Project Description

This is a Buildout recipe, that can export buildout configuration to JSON file. Later this exported file can be used to get exported settings and use them in your project.

Buildout provides extensive functionality for managing configuration, but does not have tools to use this configuration anywhere else outside Buildout itself. This recipe exports all settings to JSON file, allowing to use configuration parameters outside Buildout.


parts = settings

recipe = exportrecipe
website-url =

This will generate settings.json file in your buildout directory with following content:

  "website-url": "http://localhost:8000/"

exportrecipe will export all parameters from recipe’s section, except recipe parameter.

Now you can use this file for example in your

import json

with open('settings.json') as f:
    settings = json.load(f)

WEBSITE_URL = settings['website-url']

Also you can use a helper:

import exportrecipe

config = exportrecipe.load('settings.json')

WEBSITE_URL = config.website_url

It is possible to change destination of exported file using destination option:

parts = settings

recipe = exportrecipe
destination = somewhereelse.json
website-url =

This will generate somewhereelse.json file with following content:

  "destination": "somewhereelse.json",
  "website-url": "http://localhost:8000/"

Change History

0.2 (2015-05-17)

  • Initial public release.

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.6 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 May 17, 2015
(2.7 kB) Copy SHA256 Hash SHA256
Source None May 17, 2015

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting