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

17 statements  

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 

40 

41 

42def int_or_str(value): 

43 try: 

44 return int(value) 

45 except ValueError: 

46 return value 

47 

48 

49__version__ = "7.0.1" 

50 

51VERSION = tuple(map(int_or_str, __version__.split("."))) 

52 

53 

54__all__ = [ 

55 "AuthenticationError", 

56 "AuthenticationWrongNumberOfArgsError", 

57 "BlockingConnectionPool", 

58 "BusyLoadingError", 

59 "ChildDeadlockedError", 

60 "Connection", 

61 "ConnectionError", 

62 "ConnectionPool", 

63 "CredentialProvider", 

64 "CrossSlotTransactionError", 

65 "DataError", 

66 "from_url", 

67 "default_backoff", 

68 "InvalidPipelineStack", 

69 "InvalidResponse", 

70 "MaxConnectionsError", 

71 "OutOfMemoryError", 

72 "PubSubError", 

73 "ReadOnlyError", 

74 "Redis", 

75 "RedisCluster", 

76 "RedisClusterException", 

77 "RedisError", 

78 "ResponseError", 

79 "Sentinel", 

80 "SentinelConnectionPool", 

81 "SentinelManagedConnection", 

82 "SentinelManagedSSLConnection", 

83 "SSLConnection", 

84 "UsernamePasswordCredentialProvider", 

85 "StrictRedis", 

86 "TimeoutError", 

87 "UnixDomainSocketConnection", 

88 "WatchError", 

89]