Skip to main content

Configuration system

Project description

Backdrop
========

Backdrop is a configuration system that keeps your settings out of source control.

It's curently JSON based. Other formats may be available in the future.

Install
-------

pip install backdrop

Use
---
Configuration files must be stored in `~/.backdrop/`.

For example, create a new project configuration file:

touch ~/.backdrop/myproject.json

Open it with your favorite editor:

vim ~/.backdrop/myproject.json

Save your settings, e.g.:

{
"database": {
"username": "myproject",
"password": "53cr3tp455w0rd"
}
}

In your project, include `backdrop` and load the configuration:

from backdrop import Backdrop

config = Backdrop('myproject')

Project details


Download files

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

Source Distribution

backdrop-0.0.1.tar.gz (791 Bytes view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page