Skip to main content

UNKNOWN

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.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

bottle_config-0.1.1-cp27-none-macosx_10_10_x86_64.whl (3.9 kB view details)

Uploaded CPython 2.7 macOS 10.10+ x86-64

File details

Details for the file bottle-config-0.1.1.tar.gz.

File metadata

File hashes

Hashes for bottle-config-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3e28ff3dc2c11c0cbcef555d2364efffe92785dd6e280fc76c22741bb9b6292a
MD5 38d727554cdc08ca59653fa7c15337e9
BLAKE2b-256 7b08a2a9c19de784eecf250c09031a83f9092ba5c4da67765d400cc30720db45

See more details on using hashes here.

File details

Details for the file bottle_config-0.1.1-cp27-none-macosx_10_10_x86_64.whl.

File metadata

File hashes

Hashes for bottle_config-0.1.1-cp27-none-macosx_10_10_x86_64.whl
Algorithm Hash digest
SHA256 1c88111cf3c77195303107b7ec90d2880eaa433989df441b46deb5677c737466
MD5 96df70ac5c35311dbecfc129a4087cf6
BLAKE2b-256 35e0aa3ef66343315bc89329b3e777102faffa60694a81737c1ec27c802f2c3d

See more details on using hashes here.

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