Skip to main content

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
  # ...

Release files for redis-async 0.0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for redis-async 0.0.1
File Interpreter ABI Platform
redis_async-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / redis_async-0.0.1-py3-none-any.whl

Download URL redis_async-0.0.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ce565a930f3b1d1c86a9ac0e6c44cd4bf53a9008eb37d910d6f0aed15979457
BLAKE2b-256 checksum
How to use checksums
2f8c43e2a870e8fd85ca836be828f396641f4a2b8528b33d51fac720de9ca382
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

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