Bottle Configuration
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.
Metadata
Release files for bottle-config 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bottle-config-0.1.2.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bottle_config-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / bottle-config-0.1.2.tar.gz
| Download URL | bottle-config-0.1.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afe121f9e2967e4422d8d8211a92b216dcc5af2269fbeec82cb1ac95dd0af5c6
|
|
BLAKE2b-256 checksum How to use checksums |
750be202a9c07b20c393162d2cde08a89a4c4aaf8bfb98f46986beb29b887cda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bottle_config-0.1.2-py2.py3-none-any.whl
| Download URL | bottle_config-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dd3224b0bd9dbbeece43a886104680eb0cca730fc2c8933f080bdd367bfe1a20
|
|
BLAKE2b-256 checksum How to use checksums |
14875ff943674b6af1dd806e5a51b9bc5aab77a30dba132b5922ff9428115ee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |