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.

Files for redis-async, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size redis_async-0.0.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page