Skip to main content

Simple redis async wrapper for python3

Project description

redis-async

A simple redis async wrapper for python3

PYPI Version Build Status

NOTE:

Not all redis command are covered yet. Please use it after release 0.1.0.

Setup & Install

Via pip

pip install redis_async

From source

python setup.py build && python setup.py install

Example

from redis_async import RedisHash, Redis


# Initialize redis store
Redis.initialize(url='redis://redis:port', prefix='application')

class Store:
  # actual redis key will be like: "application:user:1"
  User = RedisHash(tpl="user:{id}")

def process_user(id):
  # preprocess code ...
  user = Store.User.hgetall(id)
  # process user block
  # ...

async def process_user_async(id):
  # preprocess code ...
  user = await Store.User.hgetallAsync(id)
  # process user block
  # ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

redis_async-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page