Flask-RedisConfig
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__)
config = RedisConfig('app:config')
config.init_app(app)
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 >
Example
$ python example.py config $ python example.py
License
Metadata
Release files for Flask-RedisConfig 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-RedisConfig-0.3.0.tar.gz | 2.5 kB | Without provenance | Details for Flask-RedisConfig-0.3.0.tar.gz |
Release files / Flask-RedisConfig-0.3.0.tar.gz
| Download URL | Flask-RedisConfig-0.3.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
691a7b71f15fdaeaae525d498d0280582cd491024f9d18a67a90ed33ebad1317
|
|
BLAKE2b-256 checksum How to use checksums |
efe2fe99898dd41c9c07242c598c72e18af3a200e830994151d2222eb6797b2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-RedisConfig 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.