flask-redis
A nice way to use Redis in your Flask app
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is simple, well-documented, and has no known vulnerabilities. Install friction is low and it integrates cleanly with Flask's extension pattern. However, it has been dormant since 2019 and the license is undeclared—verify that the unclear license status is acceptable for your use case, and be aware that bug fixes or updates may be slow. If you need active maintenance or modern Python support guarantees, consider whether a direct redis-py integration or a more actively maintained alternative better suits your project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Redis server; connection URL must be configured via Flask's REDIS_URL config variable.
- Low install friction with only two runtime dependencies (Flask and redis).
- However, the package is dormant—last release was 2019-05-29, with the most recent commit in 2024-03-04.
License · maintenance · safety
(unclear) — License treatment is unclear—the package metadata does not specify a license. The description notes that earlier work was Apache 2 licensed, but the current license status is not documented in the package metadata.
last release 2019-05-29 (2634 days) · last repo commit 2024-03-04 · 440 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 156,039 downloads/mo, #10,795 on PyPI
Alternatives
Verify before relying
pip install flask-redis
from flask import Flask
from flask_redis import FlaskRedis
app = Flask(__name__)
app.config['REDIS_URL'] = 'redis://localhost:6379/0'
redis_client = FlaskRedis(app)
value = redis_client.get('key')- Whether the package works reliably with modern Flask and redis versions despite dormancy since 2019.
- Current compatibility with Python versions beyond 3.7 (classifiers list only up to 3.7).
- Whether the unclear license status poses any legal risk for commercial use.
What it is and what it does
flask-redis is a Flask extension that wraps the redis-py library, allowing you to configure and use a Redis client within a Flask application using Flask's standard configuration system. Instead of manually instantiating and managing a redis-py client, you declare a FlaskRedis instance and configure it with a REDIS_URL, and the extension handles the connection lifecycle and makes the client available throughout your app.
The package acts as a thin, Flask-aware adapter over redis-py. It supports both direct initialization and the deferred init_app pattern common in Flask extensions, allows custom Redis providers (useful for swapping in mock implementations during testing), and passes through all redis-py methods and keyword arguments unchanged. You interact with it exactly like a standard redis-py client once initialized.
Use it for
- Add Redis caching to a Flask web application with minimal boilerplate using Flask config.
- Use mock Redis via custom provider in tests while using real Redis in production.
- Support multiple Redis databases in a single Flask app via config_prefix.
- Access Redis from Flask route handlers and background tasks without manual connection management.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is simple, well-documented, and has no known vulnerabilities. Install friction is low and it integrates cleanly with Flask's extension pattern. However, it has been dormant since 2019 and the license is undeclared—verify that the unclear license status is acceptable for your use case, and be aware that bug fixes or updates may be slow. If you need active maintenance or modern Python support guarantees, consider whether a direct redis-py integration or a more actively maintained alternative better suits your project.
Install
flask-redis on PyPI
Before you install
Low install friction with only two runtime dependencies (Flask and redis). However, the package is dormant—last release was 2019-05-29, with the most recent commit in 2024-03-04. No active maintenance; the sole maintainer works full-time and response times may be slow.
Requires a running Redis server; connection URL must be configured via Flask's REDIS_URL config variable.
License in practice
License treatment is unclear—the package metadata does not specify a license. The description notes that earlier work was Apache 2 licensed, but the current license status is not documented in the package metadata.
Quickstart
pip install flask-redis
from flask import Flask
from flask_redis import FlaskRedis
app = Flask(__name__)
app.config['REDIS_URL'] = 'redis://localhost:6379/0'
redis_client = FlaskRedis(app)
value = redis_client.get('key')
Verify before relying
- Whether the package works reliably with modern Flask and redis versions despite dormancy since 2019.
- Current compatibility with Python versions beyond 3.7 (classifiers list only up to 3.7).
- Whether the unclear license status poses any legal risk for commercial use.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesFlaskredis |
| Maintenance | Dormant 2,634 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 156,039 / month, #10,795 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: FlaskIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: flask_redis-0.4.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask redis integration”
- flask-redisIntegrates Redis into Flask applications as a managed extension,…
- Flask-SessionFlask-Session adds server-side session storage to Flask applications,…
- judoscaleJudoscale is a Python adapter that integrates with the Judoscale…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also redis-cli · redislite · Flask-Session · walrus · redis-py-cluster · py-redis · redis-entraid · redis · hiredis · fakeredis