Skip to content

Commit 248e943

Browse files
committed
new: Initial merge types-redis
Related valkey-io#84
1 parent 1114d82 commit 248e943

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+6407
-0
lines changed

valkey/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def int_or_str(value):
4444
return value
4545

4646

47+
__version__: str
48+
VERSION: tuple[int | str, ...]
49+
4750
try:
4851
__version__ = metadata.version("valkey")
4952
except metadata.PackageNotFoundError:

valkey/asyncio/__init__.pyi

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
from valkey.asyncio.client import Valkey as Valkey, StrictValkey as StrictValkey
2+
from valkey.asyncio.cluster import ValkeyCluster as ValkeyCluster
3+
from valkey.asyncio.connection import (
4+
BlockingConnectionPool as BlockingConnectionPool,
5+
Connection as Connection,
6+
ConnectionPool as ConnectionPool,
7+
SSLConnection as SSLConnection,
8+
UnixDomainSocketConnection as UnixDomainSocketConnection,
9+
)
10+
from valkey.asyncio.parser import CommandsParser as CommandsParser
11+
from valkey.asyncio.sentinel import (
12+
Sentinel as Sentinel,
13+
SentinelConnectionPool as SentinelConnectionPool,
14+
SentinelManagedConnection as SentinelManagedConnection,
15+
SentinelManagedSSLConnection as SentinelManagedSSLConnection,
16+
)
17+
from valkey.asyncio.utils import from_url as from_url
18+
from valkey.backoff import default_backoff as default_backoff
19+
from valkey.exceptions import (
20+
AuthenticationError as AuthenticationError,
21+
AuthenticationWrongNumberOfArgsError as AuthenticationWrongNumberOfArgsError,
22+
BusyLoadingError as BusyLoadingError,
23+
ChildDeadlockedError as ChildDeadlockedError,
24+
ConnectionError as ConnectionError,
25+
DataError as DataError,
26+
InvalidResponse as InvalidResponse,
27+
PubSubError as PubSubError,
28+
ReadOnlyError as ReadOnlyError,
29+
ValkeyError as ValkeyError,
30+
ResponseError as ResponseError,
31+
TimeoutError as TimeoutError,
32+
WatchError as WatchError,
33+
)
34+
35+
__all__ = [
36+
"AuthenticationError",
37+
"AuthenticationWrongNumberOfArgsError",
38+
"BlockingConnectionPool",
39+
"BusyLoadingError",
40+
"ChildDeadlockedError",
41+
"CommandsParser",
42+
"Connection",
43+
"ConnectionError",
44+
"ConnectionPool",
45+
"DataError",
46+
"from_url",
47+
"default_backoff",
48+
"InvalidResponse",
49+
"PubSubError",
50+
"ReadOnlyError",
51+
"Valkey",
52+
"ValkeyCluster",
53+
"ValkeyError",
54+
"ResponseError",
55+
"Sentinel",
56+
"SentinelConnectionPool",
57+
"SentinelManagedConnection",
58+
"SentinelManagedSSLConnection",
59+
"SSLConnection",
60+
"StrictValkey",
61+
"TimeoutError",
62+
"UnixDomainSocketConnection",
63+
"WatchError",
64+
]

0 commit comments

Comments
 (0)