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 MaxConnectionsError,
24 OutOfMemoryError,
25 PubSubError,
26 ReadOnlyError,
27 RedisClusterException,
28 RedisError,
29 ResponseError,
30 TimeoutError,
31 WatchError,
32)
33from redis.sentinel import (
34 Sentinel,
35 SentinelConnectionPool,
36 SentinelManagedConnection,
37 SentinelManagedSSLConnection,
38)
39from redis.utils import from_url
42def int_or_str(value):
43 try:
44 return int(value)
45 except ValueError:
46 return value
49__version__ = "6.2.0"
50VERSION = tuple(map(int_or_str, __version__.split(".")))
53__all__ = [
54 "AuthenticationError",
55 "AuthenticationWrongNumberOfArgsError",
56 "BlockingConnectionPool",
57 "BusyLoadingError",
58 "ChildDeadlockedError",
59 "Connection",
60 "ConnectionError",
61 "ConnectionPool",
62 "CredentialProvider",
63 "CrossSlotTransactionError",
64 "DataError",
65 "from_url",
66 "default_backoff",
67 "InvalidPipelineStack",
68 "InvalidResponse",
69 "MaxConnectionsError",
70 "OutOfMemoryError",
71 "PubSubError",
72 "ReadOnlyError",
73 "Redis",
74 "RedisCluster",
75 "RedisClusterException",
76 "RedisError",
77 "ResponseError",
78 "Sentinel",
79 "SentinelConnectionPool",
80 "SentinelManagedConnection",
81 "SentinelManagedSSLConnection",
82 "SSLConnection",
83 "UsernamePasswordCredentialProvider",
84 "StrictRedis",
85 "TimeoutError",
86 "UnixDomainSocketConnection",
87 "WatchError",
88]