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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bottle-config-0.1.2.tar.gz.
File metadata
- Download URL: bottle-config-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afe121f9e2967e4422d8d8211a92b216dcc5af2269fbeec82cb1ac95dd0af5c6
|
|
| MD5 |
7a40422c1714ec93a217d318239540eb
|
|
| BLAKE2b-256 |
750be202a9c07b20c393162d2cde08a89a4c4aaf8bfb98f46986beb29b887cda
|
File details
Details for the file bottle_config-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: bottle_config-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd3224b0bd9dbbeece43a886104680eb0cca730fc2c8933f080bdd367bfe1a20
|
|
| MD5 |
6a1441b9a73815753592abcd5b783adf
|
|
| BLAKE2b-256 |
14875ff943674b6af1dd806e5a51b9bc5aab77a30dba132b5922ff9428115ee4
|