Simple redis async wrapper for python3
Project description
redis-async
A simple redis async wrapper for python3
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
Release history Release notifications | RSS feed
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce565a930f3b1d1c86a9ac0e6c44cd4bf53a9008eb37d910d6f0aed15979457 |
|
MD5 | 41609c8262a2a3c091b61e5ee125bea7 |
|
BLAKE2b-256 | 2f8c43e2a870e8fd85ca836be828f396641f4a2b8528b33d51fac720de9ca382 |