Skip to content
RedisGears python client
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
gearsclient added register and foreach operations Jun 5, 2019
.gitignore Initial commit Jun 3, 2019
LICENSE Initial commit Jun 3, 2019 Update README to be consistent with Gears docs Aug 6, 2019


RedisGears python client (support python3 only!)

Example: Using the Python Client:

from gearsclient import GearsRemoteBuilder as GearsBuilder
import redis

conn = redis.Redis(host='localhost', port=6379)

# count for each genre how many times it appears

res = GearsBuilder('KeysOnlyReader', r=conn).\
	  map(lambda x:execute('hget', x, 'genres')).\
	  filter(lambda x:x != '\\N').\
	  flatmap(lambda x: x.split(',')).\
	  map(lambda x: x.strip()).\

for r in res[0]:
	print('%-15s: %d' % (r['key'], r['value']))


pip install git+

Notice that the library also need to be installed in RedisGears virtual env.

You can’t perform that action at this time.