Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc