Redis-backed config for Flask applications
Project description
Redis-backed config for Flask applications based on the disqus/durabledict library
Usage
from flask import Flask from flask.ext.redisconfig import RedisConfig app = Flask(__name__) app.config.update(REDISCONFIG_KEY_PREFIX='app:config') config = RedisConfig(app) config.load()
Command Line Interface
A CLI utility is provided for setting or reviewing config values easily.
config.cli()
Flask-RedisConfig > help Documented commands (type help <topic>): ======================================== exit get help list set set_bool set_int > set SECRET_KEY oo5thuj4kaem2Pai0iviefahkaShah5iemae8Aev > get SECRET_KEY SECRET_KEY = 'oo5thuj4kaem2Pai0iviefahkaShah5iemae8Aev' > set_bool PRESERVE_CONTEXT_ON_EXCEPTION False > set_int SQLALCHEMY_POOL_SIZE 100 > list PRESERVE_CONTEXT_ON_EXCEPTION = False SECRET_KEY = 'oo5thuj4kaem2Pai0iviefahkaShah5iemae8Aev' SQLALCHEMY_POOL_SIZE = 100 >
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
Built Distribution
Close
Hashes for Flask_RedisConfig-0.0.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc16943cd16e4610a10c53bb1e4fa855faf7d0fac23764fca6de3d54d883790 |
|
MD5 | df6160ed00c4be7b4523e428ea9e5158 |
|
BLAKE2b-256 | 62dbe817dfb6d2238b8e635061a0711e2824c9b35944f8e126bf28b79686f77a |