معرفی شرکت ها


async-redis-objects-0.4.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Object oriented interface to aioredis.
ویژگی مقدار
سیستم عامل -
نام فایل async-redis-objects-0.4.1
نام async-redis-objects
نسخه کتابخانه 0.4.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Adam Douglass
ایمیل نویسنده douglass@malloc.ca
آدرس صفحه اصلی https://github.com/adam-douglass/async-redis-objects/
آدرس اینترنتی https://pypi.org/project/async-redis-objects/
مجوز -
[![Actions Status](https://github.com/adam-douglass/async-redis-objects/workflows/unittests/badge.svg)](https://github.com/adam-douglass/draughts/actions) [![codecov](https://codecov.io/gh/adam-douglass/async-redis-objects/branch/main/graph/badge.svg?token=6n3DbzkOwk)](https://codecov.io/gh/adam-douglass/async-redis-objects) Async Redis Objects =================== Some object orient wrappers around the redis interface provided by [`aioredis`](https://github.com/aio-libs/aioredis). Notes ----- - Included: - hash table - queue (list) - priority queue (sorted set) - locks (keys) - Includes python implementation with matching interface for mocking. \ `from async_redis_objects.mocks import ObjectClient` - tested on pypy and CPython 3.6 to 3.9 - [API documentation on read the docs](https://async-redis-objects.readthedocs.io) Example ------- ```python import aioredis import asyncio from async_redis_objects import ObjectClient async def main(): # Connect with aioredis as normal redis = aioredis.Redis(await aioredis.pool.create_pool(address='redis://redis:6379', db=3, minsize=5)) # Make an object client object with your redis object objects = ObjectClient(redis) # Access a hash table in redis table = objects.hash('hash-table-key') await table.set('name', 'Hello World') # Access a queue queue = objects.queue('queue-name') await queue.push(await table.get('name')) await queue.push(100000) # Access a priority queue pq = objects.priority_queue('other-queue-name') await pq.push({'name': 'same json serializable object'}, priority=100) await pq.push(await queue.pop(), priority=101) print(await pq.pop()) # Print Hello World loop = asyncio.get_event_loop() loop.run_until_complete(main()) ```


نیازمندی

مقدار نام
- aioredis
- sphinx
- sphinx-rtd-theme
- sphinx-autodoc-typehints
- pytest
!=0.11 pytest-asyncio
- coverage


نحوه نصب


نصب پکیج whl async-redis-objects-0.4.1:

    pip install async-redis-objects-0.4.1.whl


نصب پکیج tar.gz async-redis-objects-0.4.1:

    pip install async-redis-objects-0.4.1.tar.gz