Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/redis/__init__.py: 90%
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.driver_info import DriverInfo
5from redis.cluster import RedisCluster
6from redis.connection import (
7 BlockingConnectionPool,
8 Connection,
9 ConnectionPool,
10 SSLConnection,
11 UnixDomainSocketConnection,
12)
13from redis.credentials import CredentialProvider, UsernamePasswordCredentialProvider
14from redis.keyspace_notifications import (
15 ChannelType,
16 ClusterKeyspaceNotifications,
17 EventType,
18 KeyeventChannel,
19 KeyNotification,
20 KeyspaceChannel,
21 KeyspaceNotifications,
22 KeyspaceNotificationsInterface,
23 KeyspaceWorkerThread,
24 get_channel_type,
25)
26from redis.exceptions import (
27 AuthenticationError,
28 AuthenticationWrongNumberOfArgsError,
29 BusyLoadingError,
30 ChildDeadlockedError,
31 ConnectionError,
32 CrossSlotTransactionError,
33 DataError,
34 InvalidPipelineStack,
35 InvalidResponse,
36 MaxConnectionsError,
37 OutOfMemoryError,
38 PubSubError,
39 ReadOnlyError,
40 RedisClusterException,
41 RedisError,
42 ResponseError,
43 TimeoutError,
44 WatchError,
45)
46from redis.sentinel import (
47 Sentinel,
48 SentinelConnectionPool,
49 SentinelManagedConnection,
50 SentinelManagedSSLConnection,
51)
52from redis.commands.core import GCRAResponse
53from redis.utils import from_url
56def int_or_str(value):
57 try:
58 return int(value)
59 except ValueError:
60 return value
63__version__ = "7.3.0"
65VERSION = tuple(map(int_or_str, __version__.split(".")))
68__all__ = [
69 "AuthenticationError",
70 "AuthenticationWrongNumberOfArgsError",
71 "BlockingConnectionPool",
72 "BusyLoadingError",
73 "ChannelType",
74 "ChildDeadlockedError",
75 "ClusterKeyspaceNotifications",
76 "Connection",
77 "ConnectionError",
78 "ConnectionPool",
79 "CredentialProvider",
80 "CrossSlotTransactionError",
81 "DataError",
82 "DriverInfo",
83 "EventType",
84 "from_url",
85 "GCRAResponse",
86 "default_backoff",
87 "InvalidPipelineStack",
88 "InvalidResponse",
89 "KeyeventChannel",
90 "KeyNotification",
91 "KeyspaceChannel",
92 "KeyspaceNotifications",
93 "KeyspaceNotificationsInterface",
94 "KeyspaceWorkerThread",
95 "get_channel_type",
96 "MaxConnectionsError",
97 "OutOfMemoryError",
98 "PubSubError",
99 "ReadOnlyError",
100 "Redis",
101 "RedisCluster",
102 "RedisClusterException",
103 "RedisError",
104 "ResponseError",
105 "Sentinel",
106 "SentinelConnectionPool",
107 "SentinelManagedConnection",
108 "SentinelManagedSSLConnection",
109 "SSLConnection",
110 "UsernamePasswordCredentialProvider",
111 "StrictRedis",
112 "TimeoutError",
113 "UnixDomainSocketConnection",
114 "WatchError",
115]