Skip to main content

No project description provided

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

Uploaded Source

Built Distribution

bottle_config-0.1.2-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for bottle-config-0.1.2.tar.gz
Algorithm Hash digest
SHA256 afe121f9e2967e4422d8d8211a92b216dcc5af2269fbeec82cb1ac95dd0af5c6
MD5 7a40422c1714ec93a217d318239540eb
BLAKE2b-256 750be202a9c07b20c393162d2cde08a89a4c4aaf8bfb98f46986beb29b887cda

See more details on using hashes here.

File details

Details for the file bottle_config-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bottle_config-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd3224b0bd9dbbeece43a886104680eb0cca730fc2c8933f080bdd367bfe1a20
MD5 6a1441b9a73815753592abcd5b783adf
BLAKE2b-256 14875ff943674b6af1dd806e5a51b9bc5aab77a30dba132b5922ff9428115ee4

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