Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/redis/__init__.py: 88%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from redis import asyncio # noqa
2from redis.backoff import default_backoff
3from redis.client import Redis, StrictRedis
4from redis.cluster import RedisCluster
5from redis.connection import (
6 BlockingConnectionPool,
7 Connection,
8 ConnectionPool,
9 SSLConnection,
10 UnixDomainSocketConnection,
11)
12from redis.credentials import CredentialProvider, UsernamePasswordCredentialProvider
13from redis.exceptions import (
14 AuthenticationError,
15 AuthenticationWrongNumberOfArgsError,
16 BusyLoadingError,
17 ChildDeadlockedError,
18 ConnectionError,
19 CrossSlotTransactionError,
20 DataError,
21 InvalidPipelineStack,
22 InvalidResponse,
23 OutOfMemoryError,
24 PubSubError,
25 ReadOnlyError,
26 RedisClusterException,
27 RedisError,
28 ResponseError,
29 TimeoutError,
30 WatchError,
31)
32from redis.sentinel import (
33 Sentinel,
34 SentinelConnectionPool,
35 SentinelManagedConnection,
36 SentinelManagedSSLConnection,
37)
38from redis.utils import from_url
41def int_or_str(value):
42 try:
43 return int(value)
44 except ValueError:
45 return value
48__version__ = "6.2.0"
49VERSION = tuple(map(int_or_str, __version__.split(".")))
52__all__ = [
53 "AuthenticationError",
54 "AuthenticationWrongNumberOfArgsError",
55 "BlockingConnectionPool",
56 "BusyLoadingError",
57 "ChildDeadlockedError",
58 "Connection",
59 "ConnectionError",
60 "ConnectionPool",
61 "CredentialProvider",
62 "CrossSlotTransactionError",
63 "DataError",
64 "from_url",
65 "default_backoff",
66 "InvalidPipelineStack",
67 "InvalidResponse",
68 "OutOfMemoryError",
69 "PubSubError",
70 "ReadOnlyError",
71 "Redis",
72 "RedisCluster",
73 "RedisClusterException",
74 "RedisError",
75 "ResponseError",
76 "Sentinel",
77 "SentinelConnectionPool",
78 "SentinelManagedConnection",
79 "SentinelManagedSSLConnection",
80 "SSLConnection",
81 "UsernamePasswordCredentialProvider",
82 "StrictRedis",
83 "TimeoutError",
84 "UnixDomainSocketConnection",
85 "WatchError",
86]