Merge master
This commit is contained in:
59
infrastructure/lambda/task_queue_manager/redis/__init__.py
Normal file
59
infrastructure/lambda/task_queue_manager/redis/__init__.py
Normal file
@ -0,0 +1,59 @@
|
||||
from redis.client import Redis, StrictRedis
|
||||
from redis.connection import (
|
||||
BlockingConnectionPool,
|
||||
ConnectionPool,
|
||||
Connection,
|
||||
SSLConnection,
|
||||
UnixDomainSocketConnection
|
||||
)
|
||||
from redis.utils import from_url
|
||||
from redis.exceptions import (
|
||||
AuthenticationError,
|
||||
AuthenticationWrongNumberOfArgsError,
|
||||
BusyLoadingError,
|
||||
ChildDeadlockedError,
|
||||
ConnectionError,
|
||||
DataError,
|
||||
InvalidResponse,
|
||||
PubSubError,
|
||||
ReadOnlyError,
|
||||
RedisError,
|
||||
ResponseError,
|
||||
TimeoutError,
|
||||
WatchError
|
||||
)
|
||||
|
||||
|
||||
def int_or_str(value):
|
||||
try:
|
||||
return int(value)
|
||||
except ValueError:
|
||||
return value
|
||||
|
||||
|
||||
__version__ = '3.5.2'
|
||||
VERSION = tuple(map(int_or_str, __version__.split('.')))
|
||||
|
||||
__all__ = [
|
||||
'AuthenticationError',
|
||||
'AuthenticationWrongNumberOfArgsError',
|
||||
'BlockingConnectionPool',
|
||||
'BusyLoadingError',
|
||||
'ChildDeadlockedError',
|
||||
'Connection',
|
||||
'ConnectionError',
|
||||
'ConnectionPool',
|
||||
'DataError',
|
||||
'from_url',
|
||||
'InvalidResponse',
|
||||
'PubSubError',
|
||||
'ReadOnlyError',
|
||||
'Redis',
|
||||
'RedisError',
|
||||
'ResponseError',
|
||||
'SSLConnection',
|
||||
'StrictRedis',
|
||||
'TimeoutError',
|
||||
'UnixDomainSocketConnection',
|
||||
'WatchError',
|
||||
]
|
Reference in New Issue
Block a user