def from_url(url, db=None, **kwargs):
 from redis.client import Redis
 return Redis.from_url(url, db, **kwargs)

def from_url ( url , db = None , ** kwargs ) : from redis . client import Redis return Redis . from_url ( url , db , ** kwargs )
returns an active redis client generated from the given database url .