Connecting to Redis in Python requires the use of a client library. Many different client libraries exist for Python, but redis-py is one of the most popular clients in use.
Once you install your client library, you can then access Redis in your application by importing the appropriate module, establishing a connection, then executing a command.
To connect on redis with python you need to install a client. You can install with pip using:
pip install redis
this will install redis-py
Optionally, you may want to install hiredis-py which delegates parsing of protocol messages to the C hiredis client. This can provide significant performance improvement in many situations. You can install hiredis with pip by executing:
pip install hiredis