Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/redis/__init__.py: 89%
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.exceptions import (
15 AuthenticationError,
16 AuthenticationWrongNumberOfArgsError,
17 BusyLoadingError,
18 ChildDeadlockedError,
19 ConnectionError,
20 CrossSlotTransactionError,
21 DataError,
22 InvalidPipelineStack,
23 InvalidResponse,
24 MaxConnectionsError,
25 OutOfMemoryError,
26 PubSubError,
27 ReadOnlyError,
28 RedisClusterException,
29 RedisError,
30 ResponseError,
31 TimeoutError,
32 WatchError,
33)
34from redis.sentinel import (
35 Sentinel,
36 SentinelConnectionPool,
37 SentinelManagedConnection,
38 SentinelManagedSSLConnection,
39)
40from redis.utils import from_url
43def int_or_str(value):
44 try:
45 return int(value)
46 except ValueError:
47 return value
50__version__ = "7.0.1"
52VERSION = tuple(map(int_or_str, __version__.split(".")))
55__all__ = [
56 "AuthenticationError",
57 "AuthenticationWrongNumberOfArgsError",
58 "BlockingConnectionPool",
59 "BusyLoadingError",
60 "ChildDeadlockedError",
61 "Connection",
62 "ConnectionError",
63 "ConnectionPool",
64 "CredentialProvider",
65 "CrossSlotTransactionError",
66 "DataError",
67 "DriverInfo",
68 "from_url",
69 "default_backoff",
70 "InvalidPipelineStack",
71 "InvalidResponse",
72 "MaxConnectionsError",
73 "OutOfMemoryError",
74 "PubSubError",
75 "ReadOnlyError",
76 "Redis",
77 "RedisCluster",
78 "RedisClusterException",
79 "RedisError",
80 "ResponseError",
81 "Sentinel",
82 "SentinelConnectionPool",
83 "SentinelManagedConnection",
84 "SentinelManagedSSLConnection",
85 "SSLConnection",
86 "UsernamePasswordCredentialProvider",
87 "StrictRedis",
88 "TimeoutError",
89 "UnixDomainSocketConnection",
90 "WatchError",
91]