没有项目描述
bottle-config的Python项目详细描述
瓶子配置–从文件配置瓶子。
Requirements
- python=2.6
Usage
应用程序提供类似django设置的配置。
设置.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
使用环境变量设置配置模块
BOTTLE_CONFIG=project.config.production python app.py
Bug tracker
如果您有任何建议、错误报告或 烦恼请向问题追踪者报告 在https://github.com/klen/bottle_config/issues
Contributing
在github开发启动器:https://github.com/klen/bottle_config
Contributors
- klen(基里尔·克莱诺夫)
License
根据BSD license授权。