From a488abcfeedf5996126ca4a30efe9e9361a58d57 Mon Sep 17 00:00:00 2001 From: dvora-h Date: Mon, 4 Sep 2023 09:37:48 +0300 Subject: [PATCH] Deprecate RedisGraph --- redis/commands/graph/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/redis/commands/graph/__init__.py b/redis/commands/graph/__init__.py index a882dd514d..ffaf1fb4ff 100644 --- a/redis/commands/graph/__init__.py +++ b/redis/commands/graph/__init__.py @@ -1,3 +1,5 @@ +import warnings + from ..helpers import quote_string, random_string, stringify_param_value from .commands import AsyncGraphCommands, GraphCommands from .edge import Edge # noqa @@ -18,6 +20,12 @@ def __init__(self, client, name=random_string()): """ Create a new graph. """ + warnings.warn( + DeprecationWarning( + "RedisGraph support is deprecated as of Redis Stack 7.2 \ + (https://redis.com/blog/redisgraph-eol/)" + ) + ) self.NAME = name # Graph key self.client = client self.execute_command = client.execute_command