00001 from redis.client import Redis 00002 00003 def from_url(url, db=None, **kwargs): 00004 """Returns an active Redis client generated from the given database URL. 00005 00006 Will attempt to extract the database id from the path url fragment, if 00007 none is provided. 00008 """ 00009 return Redis.from_url(url, db, **kwargs)