| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- from redis import asyncio # noqa
- from redis.backoff import default_backoff
- from redis.client import Redis, StrictRedis
- from redis.cluster import RedisCluster
- from redis.connection import (
- BlockingConnectionPool,
- Connection,
- ConnectionPool,
- SSLConnection,
- UnixDomainSocketConnection,
- )
- from redis.credentials import CredentialProvider, UsernamePasswordCredentialProvider
- from redis.exceptions import (
- AuthenticationError,
- AuthenticationWrongNumberOfArgsError,
- BusyLoadingError,
- ChildDeadlockedError,
- ConnectionError,
- CrossSlotTransactionError,
- DataError,
- InvalidPipelineStack,
- InvalidResponse,
- OutOfMemoryError,
- PubSubError,
- ReadOnlyError,
- RedisClusterException,
- RedisError,
- ResponseError,
- TimeoutError,
- WatchError,
- )
- from redis.sentinel import (
- Sentinel,
- SentinelConnectionPool,
- SentinelManagedConnection,
- SentinelManagedSSLConnection,
- )
- from redis.utils import from_url
- def int_or_str(value):
- try:
- return int(value)
- except ValueError:
- return value
- # This version is used when building the package for publishing
- __version__ = "6.2.0"
- VERSION = tuple(map(int_or_str, __version__.split(".")))
- __all__ = [
- "AuthenticationError",
- "AuthenticationWrongNumberOfArgsError",
- "BlockingConnectionPool",
- "BusyLoadingError",
- "ChildDeadlockedError",
- "Connection",
- "ConnectionError",
- "ConnectionPool",
- "CredentialProvider",
- "CrossSlotTransactionError",
- "DataError",
- "from_url",
- "default_backoff",
- "InvalidPipelineStack",
- "InvalidResponse",
- "OutOfMemoryError",
- "PubSubError",
- "ReadOnlyError",
- "Redis",
- "RedisCluster",
- "RedisClusterException",
- "RedisError",
- "ResponseError",
- "Sentinel",
- "SentinelConnectionPool",
- "SentinelManagedConnection",
- "SentinelManagedSSLConnection",
- "SSLConnection",
- "UsernamePasswordCredentialProvider",
- "StrictRedis",
- "TimeoutError",
- "UnixDomainSocketConnection",
- "WatchError",
- ]
|