valkey-glide 1.3.5rc4__cp39-cp39-macosx_11_0_arm64.whl → 2.0.0__cp39-cp39-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.
- glide/__init__.py +32 -8
- glide/async_commands/{transaction.py → batch.py} +1420 -992
- glide/async_commands/batch_options.py +261 -0
- glide/async_commands/bitmap.py +94 -85
- glide/async_commands/cluster_commands.py +293 -126
- glide/async_commands/command_args.py +7 -6
- glide/async_commands/core.py +1313 -721
- glide/async_commands/server_modules/ft.py +83 -14
- glide/async_commands/server_modules/ft_options/ft_aggregate_options.py +15 -8
- glide/async_commands/server_modules/ft_options/ft_create_options.py +23 -11
- glide/async_commands/server_modules/ft_options/ft_profile_options.py +12 -7
- glide/async_commands/server_modules/ft_options/ft_search_options.py +12 -6
- glide/async_commands/server_modules/glide_json.py +134 -43
- glide/async_commands/server_modules/json_batch.py +157 -127
- glide/async_commands/sorted_set.py +39 -29
- glide/async_commands/standalone_commands.py +202 -95
- glide/async_commands/stream.py +94 -87
- glide/config.py +253 -112
- glide/constants.py +8 -4
- glide/glide.cpython-39-darwin.so +0 -0
- glide/glide.pyi +25 -0
- glide/glide_client.py +305 -94
- glide/logger.py +31 -19
- glide/opentelemetry.py +181 -0
- glide/protobuf/command_request_pb2.py +15 -15
- glide/protobuf/command_request_pb2.pyi +75 -46
- glide/protobuf/connection_request_pb2.py +12 -12
- glide/protobuf/connection_request_pb2.pyi +36 -29
- glide/protobuf/response_pb2.py +6 -6
- glide/protobuf/response_pb2.pyi +14 -9
- glide/protobuf_codec.py +7 -6
- glide/routes.py +41 -8
- {valkey_glide-1.3.5rc4.dist-info → valkey_glide-2.0.0.dist-info}/METADATA +38 -14
- valkey_glide-2.0.0.dist-info/RECORD +39 -0
- valkey_glide-1.3.5rc4.dist-info/RECORD +0 -37
- {valkey_glide-1.3.5rc4.dist-info → valkey_glide-2.0.0.dist-info}/WHEEL +0 -0
glide/__init__.py
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
2
2
|
|
|
3
|
+
from glide.async_commands.batch import (
|
|
4
|
+
Batch,
|
|
5
|
+
ClusterBatch,
|
|
6
|
+
ClusterTransaction,
|
|
7
|
+
TBatch,
|
|
8
|
+
Transaction,
|
|
9
|
+
)
|
|
10
|
+
from glide.async_commands.batch_options import (
|
|
11
|
+
BatchOptions,
|
|
12
|
+
BatchRetryStrategy,
|
|
13
|
+
ClusterBatchOptions,
|
|
14
|
+
)
|
|
3
15
|
from glide.async_commands.bitmap import (
|
|
4
16
|
BitEncoding,
|
|
5
17
|
BitFieldGet,
|
|
@@ -106,11 +118,6 @@ from glide.async_commands.stream import (
|
|
|
106
118
|
TrimByMaxLen,
|
|
107
119
|
TrimByMinId,
|
|
108
120
|
)
|
|
109
|
-
from glide.async_commands.transaction import (
|
|
110
|
-
ClusterTransaction,
|
|
111
|
-
Transaction,
|
|
112
|
-
TTransaction,
|
|
113
|
-
)
|
|
114
121
|
from glide.config import (
|
|
115
122
|
AdvancedGlideClientConfiguration,
|
|
116
123
|
AdvancedGlideClusterClientConfiguration,
|
|
@@ -123,6 +130,7 @@ from glide.config import (
|
|
|
123
130
|
ProtocolVersion,
|
|
124
131
|
ReadFrom,
|
|
125
132
|
ServerCredentials,
|
|
133
|
+
TlsAdvancedConfiguration,
|
|
126
134
|
)
|
|
127
135
|
from glide.constants import (
|
|
128
136
|
OK,
|
|
@@ -166,7 +174,13 @@ from glide.routes import (
|
|
|
166
174
|
SlotType,
|
|
167
175
|
)
|
|
168
176
|
|
|
169
|
-
from .glide import
|
|
177
|
+
from .glide import (
|
|
178
|
+
ClusterScanCursor,
|
|
179
|
+
OpenTelemetryConfig,
|
|
180
|
+
OpenTelemetryMetricsConfig,
|
|
181
|
+
OpenTelemetryTracesConfig,
|
|
182
|
+
Script,
|
|
183
|
+
)
|
|
170
184
|
|
|
171
185
|
PubSubMsg = CoreCommands.PubSubMsg
|
|
172
186
|
|
|
@@ -174,10 +188,16 @@ __all__ = [
|
|
|
174
188
|
# Client
|
|
175
189
|
"GlideClient",
|
|
176
190
|
"GlideClusterClient",
|
|
177
|
-
"
|
|
191
|
+
"Batch",
|
|
192
|
+
"ClusterBatch",
|
|
178
193
|
"ClusterTransaction",
|
|
194
|
+
"Transaction",
|
|
179
195
|
"TGlideClient",
|
|
180
|
-
"
|
|
196
|
+
"TBatch",
|
|
197
|
+
# Batch Options
|
|
198
|
+
"BatchOptions",
|
|
199
|
+
"BatchRetryStrategy",
|
|
200
|
+
"ClusterBatchOptions",
|
|
181
201
|
# Config
|
|
182
202
|
"AdvancedGlideClientConfiguration",
|
|
183
203
|
"AdvancedGlideClusterClientConfiguration",
|
|
@@ -187,6 +207,9 @@ __all__ = [
|
|
|
187
207
|
"ReadFrom",
|
|
188
208
|
"ServerCredentials",
|
|
189
209
|
"NodeAddress",
|
|
210
|
+
"OpenTelemetryConfig",
|
|
211
|
+
"OpenTelemetryTracesConfig",
|
|
212
|
+
"OpenTelemetryMetricsConfig",
|
|
190
213
|
"ProtocolVersion",
|
|
191
214
|
"PeriodicChecksManualInterval",
|
|
192
215
|
"PeriodicChecksStatus",
|
|
@@ -201,6 +224,7 @@ __all__ = [
|
|
|
201
224
|
"TJsonUniversalResponse",
|
|
202
225
|
"TOK",
|
|
203
226
|
"TResult",
|
|
227
|
+
"TlsAdvancedConfiguration",
|
|
204
228
|
"TXInfoStreamFullResponse",
|
|
205
229
|
"TXInfoStreamResponse",
|
|
206
230
|
"FtAggregateResponse",
|