No project description provided
Project description
Bottle Configuration – Configure Bottle from files.
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for bottle_config-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3224b0bd9dbbeece43a886104680eb0cca730fc2c8933f080bdd367bfe1a20 |
|
MD5 | 6a1441b9a73815753592abcd5b783adf |
|
BLAKE2b-256 | 14875ff943674b6af1dd806e5a51b9bc5aab77a30dba132b5922ff9428115ee4 |