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 details)

Uploaded Python 3

File details

Details for the file redis_async-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: redis_async-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for redis_async-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce565a930f3b1d1c86a9ac0e6c44cd4bf53a9008eb37d910d6f0aed15979457
MD5 41609c8262a2a3c091b61e5ee125bea7
BLAKE2b-256 2f8c43e2a870e8fd85ca836be828f396641f4a2b8528b33d51fac720de9ca382

See more details on using hashes here.

Supported by

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