UNKNOWN
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
Built Distribution
File details
Details for the file bottle-config-0.1.1.tar.gz
.
File metadata
- Download URL: bottle-config-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e28ff3dc2c11c0cbcef555d2364efffe92785dd6e280fc76c22741bb9b6292a |
|
MD5 | 38d727554cdc08ca59653fa7c15337e9 |
|
BLAKE2b-256 | 7b08a2a9c19de784eecf250c09031a83f9092ba5c4da67765d400cc30720db45 |
File details
Details for the file bottle_config-0.1.1-cp27-none-macosx_10_10_x86_64.whl
.
File metadata
- Download URL: bottle_config-0.1.1-cp27-none-macosx_10_10_x86_64.whl
- Upload date:
- Size: 3.9 kB
- Tags: CPython 2.7, macOS 10.10+ x86-64
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c88111cf3c77195303107b7ec90d2880eaa433989df441b46deb5677c737466 |
|
MD5 | 96df70ac5c35311dbecfc129a4087cf6 |
|
BLAKE2b-256 | 35e0aa3ef66343315bc89329b3e777102faffa60694a81737c1ec27c802f2c3d |