valkey-glide 2.0.0rc7__cp310-cp310-macosx_11_0_arm64.whl → 2.1.0rc1__cp310-cp310-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of valkey-glide might be problematic. Click here for more details.
- glide/__init__.py +103 -107
- glide/async_commands/cluster_commands.py +83 -101
- glide/async_commands/core.py +554 -424
- glide/async_commands/{server_modules/ft.py → ft.py} +8 -7
- glide/async_commands/{server_modules/glide_json.py → glide_json.py} +15 -92
- glide/async_commands/standalone_commands.py +18 -17
- glide/glide.cpython-310-darwin.so +0 -0
- glide/glide.pyi +26 -1
- glide/glide_client.py +70 -45
- glide/logger.py +33 -21
- glide/opentelemetry.py +185 -0
- glide_shared/__init__.py +326 -0
- {glide/async_commands → glide_shared/commands}/batch.py +411 -18
- glide_shared/commands/batch_options.py +261 -0
- glide_shared/commands/core_options.py +407 -0
- {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_aggregate_options.py +3 -3
- {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_create_options.py +4 -2
- {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_profile_options.py +4 -4
- {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_search_options.py +4 -2
- {glide/async_commands → glide_shared/commands}/server_modules/json_batch.py +4 -4
- glide_shared/commands/server_modules/json_options.py +93 -0
- {glide/async_commands → glide_shared/commands}/sorted_set.py +2 -2
- {glide/async_commands → glide_shared/commands}/stream.py +1 -1
- {glide → glide_shared}/config.py +120 -32
- {glide → glide_shared}/constants.py +3 -3
- {glide → glide_shared}/exceptions.py +27 -1
- glide_shared/protobuf/command_request_pb2.py +54 -0
- glide_shared/protobuf/connection_request_pb2.py +52 -0
- {glide → glide_shared}/protobuf/response_pb2.py +6 -6
- {glide → glide_shared}/routes.py +29 -15
- valkey_glide-2.1.0rc1.dist-info/METADATA +210 -0
- valkey_glide-2.1.0rc1.dist-info/RECORD +39 -0
- glide/protobuf/command_request_pb2.py +0 -54
- glide/protobuf/command_request_pb2.pyi +0 -1187
- glide/protobuf/connection_request_pb2.py +0 -54
- glide/protobuf/connection_request_pb2.pyi +0 -320
- glide/protobuf/response_pb2.pyi +0 -100
- valkey_glide-2.0.0rc7.dist-info/METADATA +0 -144
- valkey_glide-2.0.0rc7.dist-info/RECORD +0 -37
- /glide/py.typed → /glide_shared/commands/__init__.py +0 -0
- {glide/async_commands → glide_shared/commands}/bitmap.py +0 -0
- {glide/async_commands → glide_shared/commands}/command_args.py +0 -0
- {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_constants.py +0 -0
- {glide → glide_shared}/protobuf_codec.py +0 -0
- {valkey_glide-2.0.0rc7.dist-info → valkey_glide-2.1.0rc1.dist-info}/WHEEL +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: protobuf/connection_request.proto
|
|
4
|
-
# Protobuf Python Version: 4.25.1
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!protobuf/connection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"8\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"l\n\x13OpenTelemetryConfig\x12\x1b\n\x13\x63ollector_end_point\x18\x01 \x01(\t\x12 \n\x13span_flush_interval\x18\x02 \x01(\x04H\x00\x88\x01\x01\x42\x16\n\x14_span_flush_interval\"\xf2\x06\n\x11\x43onnectionRequest\x12\x32\n\taddresses\x18\x01 \x03(\x0b\x32\x1f.connection_request.NodeAddress\x12-\n\x08tls_mode\x18\x02 \x01(\x0e\x32\x1b.connection_request.TlsMode\x12\x1c\n\x14\x63luster_mode_enabled\x18\x03 \x01(\x08\x12\x17\n\x0frequest_timeout\x18\x04 \x01(\r\x12/\n\tread_from\x18\x05 \x01(\x0e\x32\x1c.connection_request.ReadFrom\x12N\n\x19\x63onnection_retry_strategy\x18\x06 \x01(\x0b\x32+.connection_request.ConnectionRetryStrategy\x12\x43\n\x13\x61uthentication_info\x18\x07 \x01(\x0b\x32&.connection_request.AuthenticationInfo\x12\x13\n\x0b\x64\x61tabase_id\x18\x08 \x01(\r\x12\x35\n\x08protocol\x18\t \x01(\x0e\x32#.connection_request.ProtocolVersion\x12\x13\n\x0b\x63lient_name\x18\n \x01(\t\x12[\n\x1fperiodic_checks_manual_interval\x18\x0b \x01(\x0b\x32\x30.connection_request.PeriodicChecksManualIntervalH\x00\x12N\n\x18periodic_checks_disabled\x18\x0c \x01(\x0b\x32*.connection_request.PeriodicChecksDisabledH\x00\x12\x45\n\x14pubsub_subscriptions\x18\r \x01(\x0b\x32\'.connection_request.PubSubSubscriptions\x12\x1f\n\x17inflight_requests_limit\x18\x0e \x01(\r\x12\x11\n\tclient_az\x18\x0f \x01(\t\x12\x1a\n\x12\x63onnection_timeout\x18\x10 \x01(\r\x12\x45\n\x14opentelemetry_config\x18\x11 \x01(\x0b\x32\'.connection_request.OpenTelemetryConfigB\x11\n\x0fperiodic_checks\"\x8b\x01\n\x17\x43onnectionRetryStrategy\x12\x19\n\x11number_of_retries\x18\x01 \x01(\r\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\r\x12\x15\n\rexponent_base\x18\x03 \x01(\r\x12\x1b\n\x0ejitter_percent\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x11\n\x0f_jitter_percent*o\n\x08ReadFrom\x12\x0b\n\x07Primary\x10\x00\x12\x11\n\rPreferReplica\x10\x01\x12\x11\n\rLowestLatency\x10\x02\x12\x0e\n\nAZAffinity\x10\x03\x12 \n\x1c\x41ZAffinityReplicasAndPrimary\x10\x04*4\n\x07TlsMode\x12\t\n\x05NoTls\x10\x00\x12\r\n\tSecureTls\x10\x01\x12\x0f\n\x0bInsecureTls\x10\x02*\'\n\x0fProtocolVersion\x12\t\n\x05RESP3\x10\x00\x12\t\n\x05RESP2\x10\x01*8\n\x11PubSubChannelType\x12\t\n\x05\x45xact\x10\x00\x12\x0b\n\x07Pattern\x10\x01\x12\x0b\n\x07Sharded\x10\x02\x62\x06proto3')
|
|
18
|
-
|
|
19
|
-
_globals = globals()
|
|
20
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protobuf.connection_request_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
-
DESCRIPTOR._options = None
|
|
24
|
-
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._options = None
|
|
25
|
-
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_options = b'8\001'
|
|
26
|
-
_globals['_READFROM']._serialized_start=1680
|
|
27
|
-
_globals['_READFROM']._serialized_end=1791
|
|
28
|
-
_globals['_TLSMODE']._serialized_start=1793
|
|
29
|
-
_globals['_TLSMODE']._serialized_end=1845
|
|
30
|
-
_globals['_PROTOCOLVERSION']._serialized_start=1847
|
|
31
|
-
_globals['_PROTOCOLVERSION']._serialized_end=1886
|
|
32
|
-
_globals['_PUBSUBCHANNELTYPE']._serialized_start=1888
|
|
33
|
-
_globals['_PUBSUBCHANNELTYPE']._serialized_end=1944
|
|
34
|
-
_globals['_NODEADDRESS']._serialized_start=57
|
|
35
|
-
_globals['_NODEADDRESS']._serialized_end=98
|
|
36
|
-
_globals['_AUTHENTICATIONINFO']._serialized_start=100
|
|
37
|
-
_globals['_AUTHENTICATIONINFO']._serialized_end=156
|
|
38
|
-
_globals['_PERIODICCHECKSMANUALINTERVAL']._serialized_start=158
|
|
39
|
-
_globals['_PERIODICCHECKSMANUALINTERVAL']._serialized_end=213
|
|
40
|
-
_globals['_PERIODICCHECKSDISABLED']._serialized_start=215
|
|
41
|
-
_globals['_PERIODICCHECKSDISABLED']._serialized_end=239
|
|
42
|
-
_globals['_PUBSUBCHANNELSORPATTERNS']._serialized_start=241
|
|
43
|
-
_globals['_PUBSUBCHANNELSORPATTERNS']._serialized_end=297
|
|
44
|
-
_globals['_PUBSUBSUBSCRIPTIONS']._serialized_start=300
|
|
45
|
-
_globals['_PUBSUBSUBSCRIPTIONS']._serialized_end=541
|
|
46
|
-
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_start=432
|
|
47
|
-
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_end=541
|
|
48
|
-
_globals['_OPENTELEMETRYCONFIG']._serialized_start=543
|
|
49
|
-
_globals['_OPENTELEMETRYCONFIG']._serialized_end=651
|
|
50
|
-
_globals['_CONNECTIONREQUEST']._serialized_start=654
|
|
51
|
-
_globals['_CONNECTIONREQUEST']._serialized_end=1536
|
|
52
|
-
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=1539
|
|
53
|
-
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=1678
|
|
54
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
-
isort:skip_file
|
|
4
|
-
"""
|
|
5
|
-
import builtins
|
|
6
|
-
import collections.abc
|
|
7
|
-
import google.protobuf.descriptor
|
|
8
|
-
import google.protobuf.internal.containers
|
|
9
|
-
import google.protobuf.internal.enum_type_wrapper
|
|
10
|
-
import google.protobuf.message
|
|
11
|
-
import sys
|
|
12
|
-
import typing
|
|
13
|
-
|
|
14
|
-
if sys.version_info >= (3, 10):
|
|
15
|
-
import typing as typing_extensions
|
|
16
|
-
else:
|
|
17
|
-
import typing_extensions
|
|
18
|
-
|
|
19
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
-
|
|
21
|
-
class _ReadFrom:
|
|
22
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
23
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
24
|
-
|
|
25
|
-
class _ReadFromEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReadFrom.ValueType], builtins.type):
|
|
26
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
27
|
-
Primary: _ReadFrom.ValueType # 0
|
|
28
|
-
PreferReplica: _ReadFrom.ValueType # 1
|
|
29
|
-
LowestLatency: _ReadFrom.ValueType # 2
|
|
30
|
-
AZAffinity: _ReadFrom.ValueType # 3
|
|
31
|
-
AZAffinityReplicasAndPrimary: _ReadFrom.ValueType # 4
|
|
32
|
-
|
|
33
|
-
class ReadFrom(_ReadFrom, metaclass=_ReadFromEnumTypeWrapper): ...
|
|
34
|
-
|
|
35
|
-
Primary: ReadFrom.ValueType # 0
|
|
36
|
-
PreferReplica: ReadFrom.ValueType # 1
|
|
37
|
-
LowestLatency: ReadFrom.ValueType # 2
|
|
38
|
-
AZAffinity: ReadFrom.ValueType # 3
|
|
39
|
-
AZAffinityReplicasAndPrimary: ReadFrom.ValueType # 4
|
|
40
|
-
global___ReadFrom = ReadFrom
|
|
41
|
-
|
|
42
|
-
class _TlsMode:
|
|
43
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
44
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
45
|
-
|
|
46
|
-
class _TlsModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TlsMode.ValueType], builtins.type):
|
|
47
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
48
|
-
NoTls: _TlsMode.ValueType # 0
|
|
49
|
-
SecureTls: _TlsMode.ValueType # 1
|
|
50
|
-
InsecureTls: _TlsMode.ValueType # 2
|
|
51
|
-
|
|
52
|
-
class TlsMode(_TlsMode, metaclass=_TlsModeEnumTypeWrapper): ...
|
|
53
|
-
|
|
54
|
-
NoTls: TlsMode.ValueType # 0
|
|
55
|
-
SecureTls: TlsMode.ValueType # 1
|
|
56
|
-
InsecureTls: TlsMode.ValueType # 2
|
|
57
|
-
global___TlsMode = TlsMode
|
|
58
|
-
|
|
59
|
-
class _ProtocolVersion:
|
|
60
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
61
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
62
|
-
|
|
63
|
-
class _ProtocolVersionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProtocolVersion.ValueType], builtins.type):
|
|
64
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
65
|
-
RESP3: _ProtocolVersion.ValueType # 0
|
|
66
|
-
RESP2: _ProtocolVersion.ValueType # 1
|
|
67
|
-
|
|
68
|
-
class ProtocolVersion(_ProtocolVersion, metaclass=_ProtocolVersionEnumTypeWrapper): ...
|
|
69
|
-
|
|
70
|
-
RESP3: ProtocolVersion.ValueType # 0
|
|
71
|
-
RESP2: ProtocolVersion.ValueType # 1
|
|
72
|
-
global___ProtocolVersion = ProtocolVersion
|
|
73
|
-
|
|
74
|
-
class _PubSubChannelType:
|
|
75
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
76
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
77
|
-
|
|
78
|
-
class _PubSubChannelTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PubSubChannelType.ValueType], builtins.type):
|
|
79
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
80
|
-
Exact: _PubSubChannelType.ValueType # 0
|
|
81
|
-
Pattern: _PubSubChannelType.ValueType # 1
|
|
82
|
-
Sharded: _PubSubChannelType.ValueType # 2
|
|
83
|
-
|
|
84
|
-
class PubSubChannelType(_PubSubChannelType, metaclass=_PubSubChannelTypeEnumTypeWrapper): ...
|
|
85
|
-
|
|
86
|
-
Exact: PubSubChannelType.ValueType # 0
|
|
87
|
-
Pattern: PubSubChannelType.ValueType # 1
|
|
88
|
-
Sharded: PubSubChannelType.ValueType # 2
|
|
89
|
-
global___PubSubChannelType = PubSubChannelType
|
|
90
|
-
|
|
91
|
-
@typing_extensions.final
|
|
92
|
-
class NodeAddress(google.protobuf.message.Message):
|
|
93
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
94
|
-
|
|
95
|
-
HOST_FIELD_NUMBER: builtins.int
|
|
96
|
-
PORT_FIELD_NUMBER: builtins.int
|
|
97
|
-
host: builtins.str
|
|
98
|
-
port: builtins.int
|
|
99
|
-
def __init__(
|
|
100
|
-
self,
|
|
101
|
-
*,
|
|
102
|
-
host: builtins.str = ...,
|
|
103
|
-
port: builtins.int = ...,
|
|
104
|
-
) -> None: ...
|
|
105
|
-
def ClearField(self, field_name: typing_extensions.Literal["host", b"host", "port", b"port"]) -> None: ...
|
|
106
|
-
|
|
107
|
-
global___NodeAddress = NodeAddress
|
|
108
|
-
|
|
109
|
-
@typing_extensions.final
|
|
110
|
-
class AuthenticationInfo(google.protobuf.message.Message):
|
|
111
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
112
|
-
|
|
113
|
-
PASSWORD_FIELD_NUMBER: builtins.int
|
|
114
|
-
USERNAME_FIELD_NUMBER: builtins.int
|
|
115
|
-
password: builtins.str
|
|
116
|
-
username: builtins.str
|
|
117
|
-
def __init__(
|
|
118
|
-
self,
|
|
119
|
-
*,
|
|
120
|
-
password: builtins.str = ...,
|
|
121
|
-
username: builtins.str = ...,
|
|
122
|
-
) -> None: ...
|
|
123
|
-
def ClearField(self, field_name: typing_extensions.Literal["password", b"password", "username", b"username"]) -> None: ...
|
|
124
|
-
|
|
125
|
-
global___AuthenticationInfo = AuthenticationInfo
|
|
126
|
-
|
|
127
|
-
@typing_extensions.final
|
|
128
|
-
class PeriodicChecksManualInterval(google.protobuf.message.Message):
|
|
129
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
130
|
-
|
|
131
|
-
DURATION_IN_SEC_FIELD_NUMBER: builtins.int
|
|
132
|
-
duration_in_sec: builtins.int
|
|
133
|
-
def __init__(
|
|
134
|
-
self,
|
|
135
|
-
*,
|
|
136
|
-
duration_in_sec: builtins.int = ...,
|
|
137
|
-
) -> None: ...
|
|
138
|
-
def ClearField(self, field_name: typing_extensions.Literal["duration_in_sec", b"duration_in_sec"]) -> None: ...
|
|
139
|
-
|
|
140
|
-
global___PeriodicChecksManualInterval = PeriodicChecksManualInterval
|
|
141
|
-
|
|
142
|
-
@typing_extensions.final
|
|
143
|
-
class PeriodicChecksDisabled(google.protobuf.message.Message):
|
|
144
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
145
|
-
|
|
146
|
-
def __init__(
|
|
147
|
-
self,
|
|
148
|
-
) -> None: ...
|
|
149
|
-
|
|
150
|
-
global___PeriodicChecksDisabled = PeriodicChecksDisabled
|
|
151
|
-
|
|
152
|
-
@typing_extensions.final
|
|
153
|
-
class PubSubChannelsOrPatterns(google.protobuf.message.Message):
|
|
154
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
155
|
-
|
|
156
|
-
CHANNELS_OR_PATTERNS_FIELD_NUMBER: builtins.int
|
|
157
|
-
@property
|
|
158
|
-
def channels_or_patterns(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ...
|
|
159
|
-
def __init__(
|
|
160
|
-
self,
|
|
161
|
-
*,
|
|
162
|
-
channels_or_patterns: collections.abc.Iterable[builtins.bytes] | None = ...,
|
|
163
|
-
) -> None: ...
|
|
164
|
-
def ClearField(self, field_name: typing_extensions.Literal["channels_or_patterns", b"channels_or_patterns"]) -> None: ...
|
|
165
|
-
|
|
166
|
-
global___PubSubChannelsOrPatterns = PubSubChannelsOrPatterns
|
|
167
|
-
|
|
168
|
-
@typing_extensions.final
|
|
169
|
-
class PubSubSubscriptions(google.protobuf.message.Message):
|
|
170
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
171
|
-
|
|
172
|
-
@typing_extensions.final
|
|
173
|
-
class ChannelsOrPatternsByTypeEntry(google.protobuf.message.Message):
|
|
174
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
175
|
-
|
|
176
|
-
KEY_FIELD_NUMBER: builtins.int
|
|
177
|
-
VALUE_FIELD_NUMBER: builtins.int
|
|
178
|
-
key: builtins.int
|
|
179
|
-
@property
|
|
180
|
-
def value(self) -> global___PubSubChannelsOrPatterns: ...
|
|
181
|
-
def __init__(
|
|
182
|
-
self,
|
|
183
|
-
*,
|
|
184
|
-
key: builtins.int = ...,
|
|
185
|
-
value: global___PubSubChannelsOrPatterns | None = ...,
|
|
186
|
-
) -> None: ...
|
|
187
|
-
def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
|
|
188
|
-
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
189
|
-
|
|
190
|
-
CHANNELS_OR_PATTERNS_BY_TYPE_FIELD_NUMBER: builtins.int
|
|
191
|
-
@property
|
|
192
|
-
def channels_or_patterns_by_type(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, global___PubSubChannelsOrPatterns]: ...
|
|
193
|
-
def __init__(
|
|
194
|
-
self,
|
|
195
|
-
*,
|
|
196
|
-
channels_or_patterns_by_type: collections.abc.Mapping[builtins.int, global___PubSubChannelsOrPatterns] | None = ...,
|
|
197
|
-
) -> None: ...
|
|
198
|
-
def ClearField(self, field_name: typing_extensions.Literal["channels_or_patterns_by_type", b"channels_or_patterns_by_type"]) -> None: ...
|
|
199
|
-
|
|
200
|
-
global___PubSubSubscriptions = PubSubSubscriptions
|
|
201
|
-
|
|
202
|
-
@typing_extensions.final
|
|
203
|
-
class OpenTelemetryConfig(google.protobuf.message.Message):
|
|
204
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
205
|
-
|
|
206
|
-
COLLECTOR_END_POINT_FIELD_NUMBER: builtins.int
|
|
207
|
-
SPAN_FLUSH_INTERVAL_FIELD_NUMBER: builtins.int
|
|
208
|
-
collector_end_point: builtins.str
|
|
209
|
-
span_flush_interval: builtins.int
|
|
210
|
-
def __init__(
|
|
211
|
-
self,
|
|
212
|
-
*,
|
|
213
|
-
collector_end_point: builtins.str = ...,
|
|
214
|
-
span_flush_interval: builtins.int | None = ...,
|
|
215
|
-
) -> None: ...
|
|
216
|
-
def HasField(self, field_name: typing_extensions.Literal["_span_flush_interval", b"_span_flush_interval", "span_flush_interval", b"span_flush_interval"]) -> builtins.bool: ...
|
|
217
|
-
def ClearField(self, field_name: typing_extensions.Literal["_span_flush_interval", b"_span_flush_interval", "collector_end_point", b"collector_end_point", "span_flush_interval", b"span_flush_interval"]) -> None: ...
|
|
218
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_span_flush_interval", b"_span_flush_interval"]) -> typing_extensions.Literal["span_flush_interval"] | None: ...
|
|
219
|
-
|
|
220
|
-
global___OpenTelemetryConfig = OpenTelemetryConfig
|
|
221
|
-
|
|
222
|
-
@typing_extensions.final
|
|
223
|
-
class ConnectionRequest(google.protobuf.message.Message):
|
|
224
|
-
"""IMPORTANT - if you add fields here, you probably need to add them also in client/mod.rs:`sanitized_request_string`."""
|
|
225
|
-
|
|
226
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
227
|
-
|
|
228
|
-
ADDRESSES_FIELD_NUMBER: builtins.int
|
|
229
|
-
TLS_MODE_FIELD_NUMBER: builtins.int
|
|
230
|
-
CLUSTER_MODE_ENABLED_FIELD_NUMBER: builtins.int
|
|
231
|
-
REQUEST_TIMEOUT_FIELD_NUMBER: builtins.int
|
|
232
|
-
READ_FROM_FIELD_NUMBER: builtins.int
|
|
233
|
-
CONNECTION_RETRY_STRATEGY_FIELD_NUMBER: builtins.int
|
|
234
|
-
AUTHENTICATION_INFO_FIELD_NUMBER: builtins.int
|
|
235
|
-
DATABASE_ID_FIELD_NUMBER: builtins.int
|
|
236
|
-
PROTOCOL_FIELD_NUMBER: builtins.int
|
|
237
|
-
CLIENT_NAME_FIELD_NUMBER: builtins.int
|
|
238
|
-
PERIODIC_CHECKS_MANUAL_INTERVAL_FIELD_NUMBER: builtins.int
|
|
239
|
-
PERIODIC_CHECKS_DISABLED_FIELD_NUMBER: builtins.int
|
|
240
|
-
PUBSUB_SUBSCRIPTIONS_FIELD_NUMBER: builtins.int
|
|
241
|
-
INFLIGHT_REQUESTS_LIMIT_FIELD_NUMBER: builtins.int
|
|
242
|
-
CLIENT_AZ_FIELD_NUMBER: builtins.int
|
|
243
|
-
CONNECTION_TIMEOUT_FIELD_NUMBER: builtins.int
|
|
244
|
-
OPENTELEMETRY_CONFIG_FIELD_NUMBER: builtins.int
|
|
245
|
-
@property
|
|
246
|
-
def addresses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NodeAddress]: ...
|
|
247
|
-
tls_mode: global___TlsMode.ValueType
|
|
248
|
-
cluster_mode_enabled: builtins.bool
|
|
249
|
-
request_timeout: builtins.int
|
|
250
|
-
read_from: global___ReadFrom.ValueType
|
|
251
|
-
@property
|
|
252
|
-
def connection_retry_strategy(self) -> global___ConnectionRetryStrategy: ...
|
|
253
|
-
@property
|
|
254
|
-
def authentication_info(self) -> global___AuthenticationInfo: ...
|
|
255
|
-
database_id: builtins.int
|
|
256
|
-
protocol: global___ProtocolVersion.ValueType
|
|
257
|
-
client_name: builtins.str
|
|
258
|
-
@property
|
|
259
|
-
def periodic_checks_manual_interval(self) -> global___PeriodicChecksManualInterval: ...
|
|
260
|
-
@property
|
|
261
|
-
def periodic_checks_disabled(self) -> global___PeriodicChecksDisabled: ...
|
|
262
|
-
@property
|
|
263
|
-
def pubsub_subscriptions(self) -> global___PubSubSubscriptions: ...
|
|
264
|
-
inflight_requests_limit: builtins.int
|
|
265
|
-
client_az: builtins.str
|
|
266
|
-
connection_timeout: builtins.int
|
|
267
|
-
@property
|
|
268
|
-
def opentelemetry_config(self) -> global___OpenTelemetryConfig: ...
|
|
269
|
-
def __init__(
|
|
270
|
-
self,
|
|
271
|
-
*,
|
|
272
|
-
addresses: collections.abc.Iterable[global___NodeAddress] | None = ...,
|
|
273
|
-
tls_mode: global___TlsMode.ValueType = ...,
|
|
274
|
-
cluster_mode_enabled: builtins.bool = ...,
|
|
275
|
-
request_timeout: builtins.int = ...,
|
|
276
|
-
read_from: global___ReadFrom.ValueType = ...,
|
|
277
|
-
connection_retry_strategy: global___ConnectionRetryStrategy | None = ...,
|
|
278
|
-
authentication_info: global___AuthenticationInfo | None = ...,
|
|
279
|
-
database_id: builtins.int = ...,
|
|
280
|
-
protocol: global___ProtocolVersion.ValueType = ...,
|
|
281
|
-
client_name: builtins.str = ...,
|
|
282
|
-
periodic_checks_manual_interval: global___PeriodicChecksManualInterval | None = ...,
|
|
283
|
-
periodic_checks_disabled: global___PeriodicChecksDisabled | None = ...,
|
|
284
|
-
pubsub_subscriptions: global___PubSubSubscriptions | None = ...,
|
|
285
|
-
inflight_requests_limit: builtins.int = ...,
|
|
286
|
-
client_az: builtins.str = ...,
|
|
287
|
-
connection_timeout: builtins.int = ...,
|
|
288
|
-
opentelemetry_config: global___OpenTelemetryConfig | None = ...,
|
|
289
|
-
) -> None: ...
|
|
290
|
-
def HasField(self, field_name: typing_extensions.Literal["authentication_info", b"authentication_info", "connection_retry_strategy", b"connection_retry_strategy", "opentelemetry_config", b"opentelemetry_config", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "pubsub_subscriptions", b"pubsub_subscriptions"]) -> builtins.bool: ...
|
|
291
|
-
def ClearField(self, field_name: typing_extensions.Literal["addresses", b"addresses", "authentication_info", b"authentication_info", "client_az", b"client_az", "client_name", b"client_name", "cluster_mode_enabled", b"cluster_mode_enabled", "connection_retry_strategy", b"connection_retry_strategy", "connection_timeout", b"connection_timeout", "database_id", b"database_id", "inflight_requests_limit", b"inflight_requests_limit", "opentelemetry_config", b"opentelemetry_config", "periodic_checks", b"periodic_checks", "periodic_checks_disabled", b"periodic_checks_disabled", "periodic_checks_manual_interval", b"periodic_checks_manual_interval", "protocol", b"protocol", "pubsub_subscriptions", b"pubsub_subscriptions", "read_from", b"read_from", "request_timeout", b"request_timeout", "tls_mode", b"tls_mode"]) -> None: ...
|
|
292
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["periodic_checks", b"periodic_checks"]) -> typing_extensions.Literal["periodic_checks_manual_interval", "periodic_checks_disabled"] | None: ...
|
|
293
|
-
|
|
294
|
-
global___ConnectionRequest = ConnectionRequest
|
|
295
|
-
|
|
296
|
-
@typing_extensions.final
|
|
297
|
-
class ConnectionRetryStrategy(google.protobuf.message.Message):
|
|
298
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
299
|
-
|
|
300
|
-
NUMBER_OF_RETRIES_FIELD_NUMBER: builtins.int
|
|
301
|
-
FACTOR_FIELD_NUMBER: builtins.int
|
|
302
|
-
EXPONENT_BASE_FIELD_NUMBER: builtins.int
|
|
303
|
-
JITTER_PERCENT_FIELD_NUMBER: builtins.int
|
|
304
|
-
number_of_retries: builtins.int
|
|
305
|
-
factor: builtins.int
|
|
306
|
-
exponent_base: builtins.int
|
|
307
|
-
jitter_percent: builtins.int
|
|
308
|
-
def __init__(
|
|
309
|
-
self,
|
|
310
|
-
*,
|
|
311
|
-
number_of_retries: builtins.int = ...,
|
|
312
|
-
factor: builtins.int = ...,
|
|
313
|
-
exponent_base: builtins.int = ...,
|
|
314
|
-
jitter_percent: builtins.int | None = ...,
|
|
315
|
-
) -> None: ...
|
|
316
|
-
def HasField(self, field_name: typing_extensions.Literal["_jitter_percent", b"_jitter_percent", "jitter_percent", b"jitter_percent"]) -> builtins.bool: ...
|
|
317
|
-
def ClearField(self, field_name: typing_extensions.Literal["_jitter_percent", b"_jitter_percent", "exponent_base", b"exponent_base", "factor", b"factor", "jitter_percent", b"jitter_percent", "number_of_retries", b"number_of_retries"]) -> None: ...
|
|
318
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["_jitter_percent", b"_jitter_percent"]) -> typing_extensions.Literal["jitter_percent"] | None: ...
|
|
319
|
-
|
|
320
|
-
global___ConnectionRetryStrategy = ConnectionRetryStrategy
|
glide/protobuf/response_pb2.pyi
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
-
isort:skip_file
|
|
4
|
-
"""
|
|
5
|
-
import builtins
|
|
6
|
-
import google.protobuf.descriptor
|
|
7
|
-
import google.protobuf.internal.enum_type_wrapper
|
|
8
|
-
import google.protobuf.message
|
|
9
|
-
import sys
|
|
10
|
-
import typing
|
|
11
|
-
|
|
12
|
-
if sys.version_info >= (3, 10):
|
|
13
|
-
import typing as typing_extensions
|
|
14
|
-
else:
|
|
15
|
-
import typing_extensions
|
|
16
|
-
|
|
17
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
18
|
-
|
|
19
|
-
class _RequestErrorType:
|
|
20
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
21
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
22
|
-
|
|
23
|
-
class _RequestErrorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RequestErrorType.ValueType], builtins.type):
|
|
24
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
25
|
-
Unspecified: _RequestErrorType.ValueType # 0
|
|
26
|
-
ExecAbort: _RequestErrorType.ValueType # 1
|
|
27
|
-
Timeout: _RequestErrorType.ValueType # 2
|
|
28
|
-
Disconnect: _RequestErrorType.ValueType # 3
|
|
29
|
-
|
|
30
|
-
class RequestErrorType(_RequestErrorType, metaclass=_RequestErrorTypeEnumTypeWrapper): ...
|
|
31
|
-
|
|
32
|
-
Unspecified: RequestErrorType.ValueType # 0
|
|
33
|
-
ExecAbort: RequestErrorType.ValueType # 1
|
|
34
|
-
Timeout: RequestErrorType.ValueType # 2
|
|
35
|
-
Disconnect: RequestErrorType.ValueType # 3
|
|
36
|
-
global___RequestErrorType = RequestErrorType
|
|
37
|
-
|
|
38
|
-
class _ConstantResponse:
|
|
39
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
40
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
41
|
-
|
|
42
|
-
class _ConstantResponseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConstantResponse.ValueType], builtins.type):
|
|
43
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
44
|
-
OK: _ConstantResponse.ValueType # 0
|
|
45
|
-
|
|
46
|
-
class ConstantResponse(_ConstantResponse, metaclass=_ConstantResponseEnumTypeWrapper): ...
|
|
47
|
-
|
|
48
|
-
OK: ConstantResponse.ValueType # 0
|
|
49
|
-
global___ConstantResponse = ConstantResponse
|
|
50
|
-
|
|
51
|
-
@typing_extensions.final
|
|
52
|
-
class RequestError(google.protobuf.message.Message):
|
|
53
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
54
|
-
|
|
55
|
-
TYPE_FIELD_NUMBER: builtins.int
|
|
56
|
-
MESSAGE_FIELD_NUMBER: builtins.int
|
|
57
|
-
type: global___RequestErrorType.ValueType
|
|
58
|
-
message: builtins.str
|
|
59
|
-
def __init__(
|
|
60
|
-
self,
|
|
61
|
-
*,
|
|
62
|
-
type: global___RequestErrorType.ValueType = ...,
|
|
63
|
-
message: builtins.str = ...,
|
|
64
|
-
) -> None: ...
|
|
65
|
-
def ClearField(self, field_name: typing_extensions.Literal["message", b"message", "type", b"type"]) -> None: ...
|
|
66
|
-
|
|
67
|
-
global___RequestError = RequestError
|
|
68
|
-
|
|
69
|
-
@typing_extensions.final
|
|
70
|
-
class Response(google.protobuf.message.Message):
|
|
71
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
72
|
-
|
|
73
|
-
CALLBACK_IDX_FIELD_NUMBER: builtins.int
|
|
74
|
-
RESP_POINTER_FIELD_NUMBER: builtins.int
|
|
75
|
-
CONSTANT_RESPONSE_FIELD_NUMBER: builtins.int
|
|
76
|
-
REQUEST_ERROR_FIELD_NUMBER: builtins.int
|
|
77
|
-
CLOSING_ERROR_FIELD_NUMBER: builtins.int
|
|
78
|
-
IS_PUSH_FIELD_NUMBER: builtins.int
|
|
79
|
-
callback_idx: builtins.int
|
|
80
|
-
resp_pointer: builtins.int
|
|
81
|
-
constant_response: global___ConstantResponse.ValueType
|
|
82
|
-
@property
|
|
83
|
-
def request_error(self) -> global___RequestError: ...
|
|
84
|
-
closing_error: builtins.str
|
|
85
|
-
is_push: builtins.bool
|
|
86
|
-
def __init__(
|
|
87
|
-
self,
|
|
88
|
-
*,
|
|
89
|
-
callback_idx: builtins.int = ...,
|
|
90
|
-
resp_pointer: builtins.int = ...,
|
|
91
|
-
constant_response: global___ConstantResponse.ValueType = ...,
|
|
92
|
-
request_error: global___RequestError | None = ...,
|
|
93
|
-
closing_error: builtins.str = ...,
|
|
94
|
-
is_push: builtins.bool = ...,
|
|
95
|
-
) -> None: ...
|
|
96
|
-
def HasField(self, field_name: typing_extensions.Literal["closing_error", b"closing_error", "constant_response", b"constant_response", "request_error", b"request_error", "resp_pointer", b"resp_pointer", "value", b"value"]) -> builtins.bool: ...
|
|
97
|
-
def ClearField(self, field_name: typing_extensions.Literal["callback_idx", b"callback_idx", "closing_error", b"closing_error", "constant_response", b"constant_response", "is_push", b"is_push", "request_error", b"request_error", "resp_pointer", b"resp_pointer", "value", b"value"]) -> None: ...
|
|
98
|
-
def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["resp_pointer", "constant_response", "request_error", "closing_error"] | None: ...
|
|
99
|
-
|
|
100
|
-
global___Response = Response
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: valkey-glide
|
|
3
|
-
Version: 2.0.0rc7
|
|
4
|
-
Classifier: Topic :: Database
|
|
5
|
-
Classifier: Topic :: Utilities
|
|
6
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
7
|
-
Classifier: Intended Audience :: Developers
|
|
8
|
-
Classifier: Topic :: Software Development
|
|
9
|
-
Classifier: Programming Language :: Rust
|
|
10
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
12
|
-
Requires-Dist: anyio>=4.9.0
|
|
13
|
-
Requires-Dist: typing-extensions>=4.8.0; python_version < '3.11'
|
|
14
|
-
Requires-Dist: protobuf>=3.20
|
|
15
|
-
Summary: An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0, 7.2 and 8.0.
|
|
16
|
-
Author: Valkey GLIDE Maintainers
|
|
17
|
-
License: Apache-2.0
|
|
18
|
-
Requires-Python: >=3.9
|
|
19
|
-
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
|
-
|
|
21
|
-
# Welcome to Valkey GLIDE!
|
|
22
|
-
|
|
23
|
-
Valkey General Language Independent Driver for the Enterprise (GLIDE) is the official open-source Valkey client library, proudly part of the Valkey organization. Our mission is to make your experience with Valkey and Redis OSS seamless and enjoyable. Whether you're a seasoned developer or just starting out, Valkey GLIDE is here to support you every step of the way.
|
|
24
|
-
|
|
25
|
-
# Why Choose Valkey GLIDE?
|
|
26
|
-
|
|
27
|
-
- **Community and Open Source**: Join our vibrant community and contribute to the project. We are always here to respond, and the client is for the community.
|
|
28
|
-
- **Reliability**: Built with best practices learned from over a decade of operating Redis OSS-compatible services.
|
|
29
|
-
- **Performance**: Optimized for high performance and low latency.
|
|
30
|
-
- **High Availability**: Designed to ensure your applications are always up and running.
|
|
31
|
-
- **Cross-Language Support**: Implemented using a core driver framework written in Rust, with language-specific extensions to ensure consistency and reduce complexity.
|
|
32
|
-
- **Stability and Fault Tolerance**: We brought our years of experience to create a bulletproof client.
|
|
33
|
-
- **Backed and Supported by AWS and GCP**: Ensuring robust support and continuous improvement of the project.
|
|
34
|
-
|
|
35
|
-
## Documentation
|
|
36
|
-
|
|
37
|
-
See GLIDE's [documentation site](https://valkey.io/valkey-glide/).
|
|
38
|
-
Visit our [wiki](https://github.com/valkey-io/valkey-glide/wiki/Python-wrapper) for examples and further details on TLS, Read strategy, Timeouts and various other configurations.
|
|
39
|
-
|
|
40
|
-
## Supported Engine Versions
|
|
41
|
-
|
|
42
|
-
Refer to the [Supported Engine Versions table](https://github.com/valkey-io/valkey-glide/blob/main/README.md#supported-engine-versions) for details.
|
|
43
|
-
|
|
44
|
-
# Getting Started - Python Wrapper
|
|
45
|
-
|
|
46
|
-
## System Requirements
|
|
47
|
-
|
|
48
|
-
The release of Valkey GLIDE was tested on the following platforms:
|
|
49
|
-
|
|
50
|
-
Linux:
|
|
51
|
-
|
|
52
|
-
- Ubuntu 22.04.5 (x86_64/amd64 and arm64/aarch64)
|
|
53
|
-
- Amazon Linux 2023 (AL2023) (x86_64)
|
|
54
|
-
|
|
55
|
-
**Note: Currently Alpine Linux / MUSL is NOT supported.**
|
|
56
|
-
|
|
57
|
-
macOS:
|
|
58
|
-
|
|
59
|
-
- macOS 14.7 (Apple silicon/aarch_64)
|
|
60
|
-
- macOS 13.7 (x86_64/amd64)
|
|
61
|
-
|
|
62
|
-
## Python Supported Versions
|
|
63
|
-
|
|
64
|
-
| Python Version |
|
|
65
|
-
|----------------|
|
|
66
|
-
| 3.9 |
|
|
67
|
-
| 3.10 |
|
|
68
|
-
| 3.11 |
|
|
69
|
-
| 3.12 |
|
|
70
|
-
| 3.13 |
|
|
71
|
-
|
|
72
|
-
Valkey GLIDE transparently supports both the `asyncio` and `trio` concurrency frameworks.
|
|
73
|
-
|
|
74
|
-
## Installation and Setup
|
|
75
|
-
|
|
76
|
-
### Installing via Package Manager (pip)
|
|
77
|
-
|
|
78
|
-
To install Valkey GLIDE using `pip`, follow these steps:
|
|
79
|
-
|
|
80
|
-
1. Open your terminal.
|
|
81
|
-
2. Execute the command below:
|
|
82
|
-
```bash
|
|
83
|
-
$ pip install valkey-glide
|
|
84
|
-
```
|
|
85
|
-
3. After installation, confirm the client is accessible by running:
|
|
86
|
-
```bash
|
|
87
|
-
$ python3
|
|
88
|
-
>>> import glide
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Basic Examples
|
|
92
|
-
|
|
93
|
-
#### Cluster Mode:
|
|
94
|
-
|
|
95
|
-
```python:
|
|
96
|
-
>>> import asyncio
|
|
97
|
-
>>> from glide import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
|
|
98
|
-
>>> async def test_cluster_client():
|
|
99
|
-
... addresses = [NodeAddress("address.example.com", 6379)]
|
|
100
|
-
... config = GlideClusterClientConfiguration(addresses)
|
|
101
|
-
... client = await GlideClusterClient.create(config)
|
|
102
|
-
... set_result = await client.set("foo", "bar")
|
|
103
|
-
... print(f"Set response is {set_result}")
|
|
104
|
-
... get_result = await client.get("foo")
|
|
105
|
-
... print(f"Get response is {get_result}")
|
|
106
|
-
...
|
|
107
|
-
>>> asyncio.run(test_cluster_client())
|
|
108
|
-
Set response is OK
|
|
109
|
-
Get response is bar
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
#### Standalone Mode:
|
|
113
|
-
|
|
114
|
-
```python:
|
|
115
|
-
>>> import asyncio
|
|
116
|
-
>>> from glide import GlideClientConfiguration, NodeAddress, GlideClient
|
|
117
|
-
>>> async def test_standalone_client():
|
|
118
|
-
... addresses = [
|
|
119
|
-
... NodeAddress("server_primary.example.com", 6379),
|
|
120
|
-
... NodeAddress("server_replica.example.com", 6379)
|
|
121
|
-
... ]
|
|
122
|
-
... config = GlideClientConfiguration(addresses)
|
|
123
|
-
... client = await GlideClient.create(config)
|
|
124
|
-
... set_result = await client.set("foo", "bar")
|
|
125
|
-
... print(f"Set response is {set_result}")
|
|
126
|
-
... get_result = await client.get("foo")
|
|
127
|
-
... print(f"Get response is {get_result}")
|
|
128
|
-
...
|
|
129
|
-
>>> asyncio.run(test_standalone_client())
|
|
130
|
-
Set response is OK
|
|
131
|
-
Get response is bar
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
For complete examples with error handling, please refer to the [cluster example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/cluster_example.py) and the [standalone example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/standalone_example.py).
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### Building & Testing
|
|
138
|
-
|
|
139
|
-
Development instructions for local building & testing the package are in the [DEVELOPER.md](https://github.com/valkey-io/valkey-glide/blob/main/python/DEVELOPER.md#build-from-source) file.
|
|
140
|
-
|
|
141
|
-
## Community and Feedback
|
|
142
|
-
|
|
143
|
-
We encourage you to join our community to support, share feedback, and ask questions. You can approach us for anything on our Valkey Slack: [Join Valkey Slack](https://join.slack.com/t/valkey-oss-developer/shared_invite/zt-2nxs51chx-EB9hu9Qdch3GMfRcztTSkQ).
|
|
144
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
valkey_glide-2.0.0rc7.dist-info/METADATA,sha256=JZCHx9sqjhS0Tj05RJ22jjPa_QvUQmDfNMQ0IknjfHE,5650
|
|
2
|
-
valkey_glide-2.0.0rc7.dist-info/WHEEL,sha256=YB4nIpEaVbQYtEelAR0MsnJWBlMXhW33ztHgM37Axhc,106
|
|
3
|
-
glide/config.py,sha256=1IkmvCPLU9nm7EpwcvYT3URoLWApWGr6eSRmuyPXDyA,28891
|
|
4
|
-
glide/protobuf_codec.py,sha256=xwt4-D4WbvNIY_vjOd-00c73HOyNjWq7nN-Z718PBVA,3667
|
|
5
|
-
glide/constants.py,sha256=Kb-wTQrcshjCivNXcrrOzz7xp7pNL_-Gt6Updiq9k4o,4354
|
|
6
|
-
glide/async_commands/sorted_set.py,sha256=nALPJQNNjW7dAqXMDJIur_xDwnJzQCdqxtx5zXYCRNM,11458
|
|
7
|
-
glide/async_commands/batch.py,sha256=DOCXFbIZWNuBzIi_6P1Qt3HvRZVblBwoUxr_4imE8A4,230468
|
|
8
|
-
glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
|
|
9
|
-
glide/async_commands/core.py,sha256=NS8jfMonU46KGPUZV5csKAueajwZlhs5FJI-aCSlLBY,316484
|
|
10
|
-
glide/async_commands/server_modules/glide_json.py,sha256=cf93MG6GioA7hFLPn1vNMjipoUt6G-qJ2oK9E91KRkw,63120
|
|
11
|
-
glide/async_commands/server_modules/json_batch.py,sha256=XBySnoRJnm1ABPYBnajHmPK6C-Wr9uk3gjNg2s7wVm8,36631
|
|
12
|
-
glide/async_commands/server_modules/ft.py,sha256=xOV22Znj9z9clKK5XZUL8UhthSbiA1F2H11EOKtMJCg,16840
|
|
13
|
-
glide/async_commands/server_modules/ft_options/ft_search_options.py,sha256=q72JVuLMFIVWXDOe0IQWTYFZYNiPSE6Yo3fKIn27hTA,4855
|
|
14
|
-
glide/async_commands/server_modules/ft_options/ft_aggregate_options.py,sha256=hnutaOAZB5iFNJ_GKK2K48gm-iiuR-rhaCFUOD6VtBM,9919
|
|
15
|
-
glide/async_commands/server_modules/ft_options/ft_create_options.py,sha256=hz-H8so5VC4ZsNxJgj1EqyMlFCnSx4II_lTIino8bkA,13721
|
|
16
|
-
glide/async_commands/server_modules/ft_options/ft_profile_options.py,sha256=19t7pHHFu-Vbp_1e5XSNHHDjnssU4kI49wglE0YskDk,4273
|
|
17
|
-
glide/async_commands/server_modules/ft_options/ft_constants.py,sha256=r9uLAExg2qThjwOBC8LxqXBITF0fwa5xfnD7EXnyPrw,1704
|
|
18
|
-
glide/async_commands/stream.py,sha256=y3tmuOc-Ndnjvc__xybBcf2wqoNUQ1H1hPXYerpwNA8,15582
|
|
19
|
-
glide/async_commands/standalone_commands.py,sha256=vfqXTIU5YLMsHUD9MD3Qi1vccD9QMSQuH38mpo_5rjU,39510
|
|
20
|
-
glide/async_commands/cluster_commands.py,sha256=trG0vZCMZxrkziYBFlFvLZ3nMUvfS6r-BRkRwb9Gif0,61994
|
|
21
|
-
glide/async_commands/command_args.py,sha256=55vpSxeQr8wFU7olkFTEecl66wPk1g6vWxVYj16UvXs,2529
|
|
22
|
-
glide/async_commands/bitmap.py,sha256=ZHGLcKBP7RADtANqIR7PWdIW_gfDBFgpkIsQ-T4QFBQ,10125
|
|
23
|
-
glide/__init__.py,sha256=nCbDQf344sIuXbaCsivrjBjkQ3kaP_ArT3IQnzTUFx8,7372
|
|
24
|
-
glide/glide.pyi,sha256=K2CeC-F0E8vlr-rbko-E0PofzFoWl4da-xUQSuvuFDo,1105
|
|
25
|
-
glide/glide_client.py,sha256=n9Vp7vjqRjHNK24YqHU35YkeDUriberJC5RPPS4_EeI,31870
|
|
26
|
-
glide/logger.py,sha256=IhlrmIDF4IufCOszQu2WnMZeyBfH21kVr8KwDlBqDP0,3800
|
|
27
|
-
glide/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
|
-
glide/exceptions.py,sha256=ZI_LwIduoR-1jHm9-6jWZkx90AqCJLRtjbv4iESIEEA,1194
|
|
29
|
-
glide/protobuf/response_pb2.pyi,sha256=f7E-n7cba9UsVVVFn5YuetEvS1_aME70aeNt5n4Kwm8,4152
|
|
30
|
-
glide/protobuf/connection_request_pb2.pyi,sha256=UlNOIN_nQLad8LIXOCBJnuET72TtI9iB-LIorgAxV-E,14575
|
|
31
|
-
glide/protobuf/command_request_pb2.py,sha256=Kl07aQBGu8i3oFqbT-uZByWVaTCjYuDeYb0OOQ4ejaE,18871
|
|
32
|
-
glide/protobuf/connection_request_pb2.py,sha256=rqnCM3pR4X74eEJzBFhsQ27SKxdtYI5vS-mbWFaQ7js,5706
|
|
33
|
-
glide/protobuf/command_request_pb2.pyi,sha256=DYnPAmwzyygCdCpW1R1CDGZB_O6zQRJp51K8Wr4CpFc,52470
|
|
34
|
-
glide/protobuf/response_pb2.py,sha256=r3_OFhf8HZvEmBSigSyBzG7S7kWl7CCgVMog4HgMFXM,2025
|
|
35
|
-
glide/routes.py,sha256=ZcLV_HrMzAYxHJW7uk905gdhOZbchBDSHlG1LVF7BJ4,4439
|
|
36
|
-
glide/glide.cpython-310-darwin.so,sha256=WmYaAo34drrJESgQyeXU7Rpqt_9Eio_q0wWD8nIq2Ng,6642048
|
|
37
|
-
valkey_glide-2.0.0rc7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|