You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

redis-async-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-async-client

Redis async client.

0.1.7
PyPI
Maintainers
1

Stack:

  • python Python 3.10+
  • niquests Redis 5.0.3+

Installation

pip install redis-async-client

Usage Async

from redis_async_client import AsyncRedisClient, RedisSettings

redis_settings = RedisSettings()
pool: redis_async.ConnectionPool = redis_settings.make_pool()
async with redis_async.Redis(connection_pool=pool) as conn:
    async_client = AsyncRedisClient(conn)
    data = await async_client.health_check()
    assert data == {'test': 'test'}

or

from redis_async_client import RedisSettings, get_redis_connection

redis_settings = RedisSettings()
async for client in get_redis_connection(redis_settings):
    data = await client.health_check()
    assert data == {'test': 'test'}

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts