Skip to main content

No project description provided

Project description

Bottle Configuration – Configure Bottle from files.

Build Status Coverals Version Downloads Donate

Requirements

  • python >= 2.6

Installation

Bottle Configuration should be installed using pip:

pip install bottle_config

Usage

The application provide configuration like Django settings.

settings.py:

DEBUG = True
ANOTHER_OPTION = 'VALUE'
import bottle
from bottle_config import config

app = bottle.Bottle()
app.install(config)

# See app.config
import bottle
from bottle_config import Config

app = bottle.Bottle()
app.install(Config('custom.default.module'))

# See app.config

Use environment variable BOTTLE_CONFIG to set a configuration module

BOTTLE_CONFIG=project.config.production python app.py

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/bottle_config/issues

Contributing

Development of starter happens at github: https://github.com/klen/bottle_config

Contributors

  • klen (Kirill Klenov)

License

Licensed under a BSD license.

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

bottle-config-0.1.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

bottle_config-0.1.2-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 Python 3

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