Skip to main content

license PyPI version CircleCI GitHub issues Codecov Language grade: Python Known Vulnerabilities

redisgears-py

Forum Discord

RedisGears python client (support python3 only!)

Example: Using the Python Client:

from gearsclient import GearsRemoteBuilder as GearsBuilder
from gearsclient import execute
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()).\
	  countby().\
	  run()


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

Installing

pip install git+https://github.com/RedisGears/redisgears-py.git

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

Developing

  1. Create a virtualenv to manage your python dependencies, and ensure it's active. virtualenv -v venv
  2. Install pypoetry to manage your dependencies. pip install poetry
  3. Install dependencies. poetry install

tox runs all tests as its default target. Running tox by itself will run unit tests. Ensure you have a running redis, with the module loaded.

Release files for gearsclient 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gearsclient 1.0.2
File Size Uploaded
gearsclient-1.0.2.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gearsclient 1.0.2
File Interpreter ABI Platform
gearsclient-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / gearsclient-1.0.2.tar.gz

Download URL gearsclient-1.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1267d3882389ec23e8f3b48447dab262fb35e10bd2e576da511ba8a4b517799
BLAKE2b-256 checksum
How to use checksums
20b8f1d4be12e2d6d97c28033a181fdbfade412874f383628659c7e81bef1787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.7.12 Linux/5.11.0-1020-azure

Release files / gearsclient-1.0.2-py3-none-any.whl

Download URL gearsclient-1.0.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac0ee20d1e27375a1fffec05f9112577d15569808707151574db86d8d2228f57
BLAKE2b-256 checksum
How to use checksums
d9ff48ffd9f410efc62c85edc0c9017f4e505d067c340e6d7982a79336fda7f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.7.12 Linux/5.11.0-1020-azure

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page