Skip to content

Commit

Permalink
new: Initial merge types-redis
Browse files Browse the repository at this point in the history
Related valkey-io#84
  • Loading branch information
Rafiot committed Sep 11, 2024
1 parent 1114d82 commit 248e943
Show file tree
Hide file tree
Showing 53 changed files with 6,407 additions and 0 deletions.
3 changes: 3 additions & 0 deletions valkey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def int_or_str(value):
return value


__version__: str
VERSION: tuple[int | str, ...]

try:
__version__ = metadata.version("valkey")
except metadata.PackageNotFoundError:
Expand Down
64 changes: 64 additions & 0 deletions valkey/asyncio/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
from valkey.asyncio.client import Valkey as Valkey, StrictValkey as StrictValkey
from valkey.asyncio.cluster import ValkeyCluster as ValkeyCluster
from valkey.asyncio.connection import (
BlockingConnectionPool as BlockingConnectionPool,
Connection as Connection,
ConnectionPool as ConnectionPool,
SSLConnection as SSLConnection,
UnixDomainSocketConnection as UnixDomainSocketConnection,
)
from valkey.asyncio.parser import CommandsParser as CommandsParser
from valkey.asyncio.sentinel import (
Sentinel as Sentinel,
SentinelConnectionPool as SentinelConnectionPool,
SentinelManagedConnection as SentinelManagedConnection,
SentinelManagedSSLConnection as SentinelManagedSSLConnection,
)
from valkey.asyncio.utils import from_url as from_url
from valkey.backoff import default_backoff as default_backoff
from valkey.exceptions import (
AuthenticationError as AuthenticationError,
AuthenticationWrongNumberOfArgsError as AuthenticationWrongNumberOfArgsError,
BusyLoadingError as BusyLoadingError,
ChildDeadlockedError as ChildDeadlockedError,
ConnectionError as ConnectionError,
DataError as DataError,
InvalidResponse as InvalidResponse,
PubSubError as PubSubError,
ReadOnlyError as ReadOnlyError,
ValkeyError as ValkeyError,
ResponseError as ResponseError,
TimeoutError as TimeoutError,
WatchError as WatchError,
)

__all__ = [
"AuthenticationError",
"AuthenticationWrongNumberOfArgsError",
"BlockingConnectionPool",
"BusyLoadingError",
"ChildDeadlockedError",
"CommandsParser",
"Connection",
"ConnectionError",
"ConnectionPool",
"DataError",
"from_url",
"default_backoff",
"InvalidResponse",
"PubSubError",
"ReadOnlyError",
"Valkey",
"ValkeyCluster",
"ValkeyError",
"ResponseError",
"Sentinel",
"SentinelConnectionPool",
"SentinelManagedConnection",
"SentinelManagedSSLConnection",
"SSLConnection",
"StrictValkey",
"TimeoutError",
"UnixDomainSocketConnection",
"WatchError",
]
Loading

0 comments on commit 248e943

Please sign in to comment.