valkey-glide 2.0.0__cp39-cp39-macosx_11_0_arm64.whl → 2.2.5rc1__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.
Files changed (44) hide show
  1. glide/__init__.py +152 -118
  2. glide/async_commands/cluster_commands.py +29 -14
  3. glide/async_commands/core.py +600 -414
  4. glide/async_commands/{server_modules/ft.py → ft.py} +8 -7
  5. glide/async_commands/{server_modules/glide_json.py → glide_json.py} +15 -92
  6. glide/async_commands/standalone_commands.py +10 -51
  7. glide/glide.cpython-39-darwin.so +0 -0
  8. glide/glide.pyi +1 -1
  9. glide/glide_client.py +54 -48
  10. glide/logger.py +3 -3
  11. glide/opentelemetry.py +8 -4
  12. glide_shared/__init__.py +330 -0
  13. glide_shared/commands/__init__.py +0 -0
  14. {glide/async_commands → glide_shared/commands}/batch.py +426 -32
  15. {glide/async_commands → glide_shared/commands}/batch_options.py +1 -1
  16. glide_shared/commands/core_options.py +407 -0
  17. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_aggregate_options.py +3 -3
  18. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_create_options.py +4 -2
  19. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_profile_options.py +4 -4
  20. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_search_options.py +4 -2
  21. {glide/async_commands → glide_shared/commands}/server_modules/json_batch.py +4 -4
  22. glide_shared/commands/server_modules/json_options.py +93 -0
  23. {glide/async_commands → glide_shared/commands}/sorted_set.py +2 -2
  24. {glide/async_commands → glide_shared/commands}/stream.py +1 -1
  25. {glide → glide_shared}/config.py +315 -60
  26. {glide → glide_shared}/constants.py +3 -3
  27. {glide → glide_shared}/exceptions.py +27 -1
  28. glide_shared/protobuf/command_request_pb2.py +56 -0
  29. glide_shared/protobuf/connection_request_pb2.py +56 -0
  30. {glide → glide_shared}/routes.py +29 -15
  31. {valkey_glide-2.0.0.dist-info → valkey_glide-2.2.5rc1.dist-info}/METADATA +120 -58
  32. valkey_glide-2.2.5rc1.dist-info/RECORD +40 -0
  33. glide/protobuf/command_request_pb2.py +0 -54
  34. glide/protobuf/command_request_pb2.pyi +0 -1193
  35. glide/protobuf/connection_request_pb2.py +0 -52
  36. glide/protobuf/connection_request_pb2.pyi +0 -299
  37. glide/protobuf/response_pb2.pyi +0 -106
  38. valkey_glide-2.0.0.dist-info/RECORD +0 -39
  39. {glide/async_commands → glide_shared/commands}/bitmap.py +0 -0
  40. {glide/async_commands → glide_shared/commands}/command_args.py +0 -0
  41. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_constants.py +0 -0
  42. {glide → glide_shared}/protobuf/response_pb2.py +0 -0
  43. {glide → glide_shared}/protobuf_codec.py +0 -0
  44. {valkey_glide-2.0.0.dist-info → valkey_glide-2.2.5rc1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,330 @@
1
+ # Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
2
+
3
+ from .commands.batch import Batch, ClusterBatch, ClusterTransaction, TBatch, Transaction
4
+ from .commands.batch_options import (
5
+ BatchOptions,
6
+ BatchRetryStrategy,
7
+ ClusterBatchOptions,
8
+ )
9
+ from .commands.bitmap import (
10
+ BitEncoding,
11
+ BitFieldGet,
12
+ BitFieldIncrBy,
13
+ BitFieldOffset,
14
+ BitFieldOverflow,
15
+ BitFieldSet,
16
+ BitFieldSubCommands,
17
+ BitmapIndexType,
18
+ BitOffset,
19
+ BitOffsetMultiplier,
20
+ BitOverflowControl,
21
+ BitwiseOperation,
22
+ OffsetOptions,
23
+ SignedEncoding,
24
+ UnsignedEncoding,
25
+ )
26
+ from .commands.command_args import Limit, ListDirection, ObjectType, OrderBy
27
+ from .commands.core_options import (
28
+ ConditionalChange,
29
+ ExpireOptions,
30
+ ExpiryGetEx,
31
+ ExpirySet,
32
+ ExpiryType,
33
+ ExpiryTypeGetEx,
34
+ FlushMode,
35
+ FunctionRestorePolicy,
36
+ HashFieldConditionalChange,
37
+ InfoSection,
38
+ InsertPosition,
39
+ OnlyIfEqual,
40
+ PubSubMsg,
41
+ UpdateOptions,
42
+ )
43
+ from .commands.server_modules import json_batch
44
+ from .commands.server_modules.ft_options.ft_aggregate_options import (
45
+ FtAggregateApply,
46
+ FtAggregateClause,
47
+ FtAggregateFilter,
48
+ FtAggregateGroupBy,
49
+ FtAggregateLimit,
50
+ FtAggregateOptions,
51
+ FtAggregateReducer,
52
+ FtAggregateSortBy,
53
+ FtAggregateSortProperty,
54
+ )
55
+ from .commands.server_modules.ft_options.ft_create_options import (
56
+ DataType,
57
+ DistanceMetricType,
58
+ Field,
59
+ FieldType,
60
+ FtCreateOptions,
61
+ NumericField,
62
+ TagField,
63
+ TextField,
64
+ VectorAlgorithm,
65
+ VectorField,
66
+ VectorFieldAttributes,
67
+ VectorFieldAttributesFlat,
68
+ VectorFieldAttributesHnsw,
69
+ VectorType,
70
+ )
71
+ from .commands.server_modules.ft_options.ft_profile_options import (
72
+ FtProfileOptions,
73
+ QueryType,
74
+ )
75
+ from .commands.server_modules.ft_options.ft_search_options import (
76
+ FtSearchLimit,
77
+ FtSearchOptions,
78
+ ReturnField,
79
+ )
80
+ from .commands.server_modules.json_options import (
81
+ JsonArrIndexOptions,
82
+ JsonArrPopOptions,
83
+ JsonGetOptions,
84
+ )
85
+ from .commands.sorted_set import (
86
+ AggregationType,
87
+ GeoSearchByBox,
88
+ GeoSearchByRadius,
89
+ GeoSearchCount,
90
+ GeospatialData,
91
+ GeoUnit,
92
+ InfBound,
93
+ LexBoundary,
94
+ RangeByIndex,
95
+ RangeByLex,
96
+ RangeByScore,
97
+ ScoreBoundary,
98
+ ScoreFilter,
99
+ )
100
+ from .commands.stream import (
101
+ ExclusiveIdBound,
102
+ IdBound,
103
+ MaxId,
104
+ MinId,
105
+ StreamAddOptions,
106
+ StreamClaimOptions,
107
+ StreamGroupOptions,
108
+ StreamPendingOptions,
109
+ StreamRangeBound,
110
+ StreamReadGroupOptions,
111
+ StreamReadOptions,
112
+ StreamTrimOptions,
113
+ TrimByMaxLen,
114
+ TrimByMinId,
115
+ )
116
+ from .config import (
117
+ AdvancedGlideClientConfiguration,
118
+ AdvancedGlideClusterClientConfiguration,
119
+ BackoffStrategy,
120
+ GlideClientConfiguration,
121
+ GlideClusterClientConfiguration,
122
+ IamAuthConfig,
123
+ NodeAddress,
124
+ PeriodicChecksManualInterval,
125
+ PeriodicChecksStatus,
126
+ ProtocolVersion,
127
+ ReadFrom,
128
+ ServerCredentials,
129
+ ServiceType,
130
+ TlsAdvancedConfiguration,
131
+ )
132
+ from .constants import (
133
+ OK,
134
+ TOK,
135
+ FtAggregateResponse,
136
+ FtInfoResponse,
137
+ FtProfileResponse,
138
+ FtSearchResponse,
139
+ TClusterResponse,
140
+ TEncodable,
141
+ TFunctionListResponse,
142
+ TFunctionStatsFullResponse,
143
+ TFunctionStatsSingleNodeResponse,
144
+ TJsonResponse,
145
+ TJsonUniversalResponse,
146
+ TResult,
147
+ TSingleNodeRoute,
148
+ TXInfoStreamFullResponse,
149
+ TXInfoStreamResponse,
150
+ )
151
+ from .exceptions import (
152
+ ClosingError,
153
+ ConfigurationError,
154
+ ConnectionError,
155
+ ExecAbortError,
156
+ GlideError,
157
+ LoggerError,
158
+ RequestError,
159
+ TimeoutError,
160
+ )
161
+ from .routes import (
162
+ AllNodes,
163
+ AllPrimaries,
164
+ ByAddressRoute,
165
+ RandomNode,
166
+ Route,
167
+ SlotIdRoute,
168
+ SlotKeyRoute,
169
+ SlotType,
170
+ )
171
+
172
+ __all__ = [
173
+ # Client
174
+ "Batch",
175
+ "ClusterBatch",
176
+ "ClusterTransaction",
177
+ "Transaction",
178
+ "TBatch",
179
+ # Batch Options
180
+ "BatchOptions",
181
+ "BatchRetryStrategy",
182
+ "ClusterBatchOptions",
183
+ # Config
184
+ "AdvancedGlideClientConfiguration",
185
+ "AdvancedGlideClusterClientConfiguration",
186
+ "GlideClientConfiguration",
187
+ "GlideClusterClientConfiguration",
188
+ "BackoffStrategy",
189
+ "ReadFrom",
190
+ "ServerCredentials",
191
+ "ServiceType",
192
+ "IamAuthConfig",
193
+ "NodeAddress",
194
+ "ProtocolVersion",
195
+ "PeriodicChecksManualInterval",
196
+ "PeriodicChecksStatus",
197
+ "TlsAdvancedConfiguration",
198
+ # Response
199
+ "OK",
200
+ "TClusterResponse",
201
+ "TEncodable",
202
+ "TFunctionListResponse",
203
+ "TFunctionStatsFullResponse",
204
+ "TFunctionStatsSingleNodeResponse",
205
+ "TJsonResponse",
206
+ "TJsonUniversalResponse",
207
+ "TOK",
208
+ "TResult",
209
+ "TXInfoStreamFullResponse",
210
+ "TXInfoStreamResponse",
211
+ "FtAggregateResponse",
212
+ "FtInfoResponse",
213
+ "FtProfileResponse",
214
+ "FtSearchResponse",
215
+ # Commands
216
+ "BitEncoding",
217
+ "BitFieldGet",
218
+ "BitFieldIncrBy",
219
+ "BitFieldOffset",
220
+ "BitFieldOverflow",
221
+ "BitFieldSet",
222
+ "BitFieldSubCommands",
223
+ "BitmapIndexType",
224
+ "BitOffset",
225
+ "BitOffsetMultiplier",
226
+ "BitOverflowControl",
227
+ "BitwiseOperation",
228
+ "OffsetOptions",
229
+ "SignedEncoding",
230
+ "UnsignedEncoding",
231
+ "ScoreBoundary",
232
+ "ConditionalChange",
233
+ "HashFieldConditionalChange",
234
+ "OnlyIfEqual",
235
+ "ExpireOptions",
236
+ "ExpiryGetEx",
237
+ "ExpirySet",
238
+ "ExpiryType",
239
+ "ExpiryTypeGetEx",
240
+ "FlushMode",
241
+ "FunctionRestorePolicy",
242
+ "GeoSearchByBox",
243
+ "GeoSearchByRadius",
244
+ "GeoSearchCount",
245
+ "GeoUnit",
246
+ "GeospatialData",
247
+ "AggregationType",
248
+ "InfBound",
249
+ "InfoSection",
250
+ "InsertPosition",
251
+ "LexBoundary",
252
+ "Limit",
253
+ "ListDirection",
254
+ "RangeByIndex",
255
+ "RangeByLex",
256
+ "RangeByScore",
257
+ "ScoreFilter",
258
+ "ObjectType",
259
+ "OrderBy",
260
+ "ExclusiveIdBound",
261
+ "IdBound",
262
+ "MaxId",
263
+ "MinId",
264
+ "StreamAddOptions",
265
+ "StreamClaimOptions",
266
+ "StreamGroupOptions",
267
+ "StreamPendingOptions",
268
+ "StreamReadGroupOptions",
269
+ "StreamRangeBound",
270
+ "StreamReadOptions",
271
+ "StreamTrimOptions",
272
+ "TrimByMaxLen",
273
+ "TrimByMinId",
274
+ "UpdateOptions",
275
+ # PubSub
276
+ "PubSubMsg",
277
+ # Json
278
+ "json_batch",
279
+ "JsonGetOptions",
280
+ "JsonArrIndexOptions",
281
+ "JsonArrPopOptions",
282
+ # Routes
283
+ "Route",
284
+ "SlotType",
285
+ "AllNodes",
286
+ "AllPrimaries",
287
+ "ByAddressRoute",
288
+ "RandomNode",
289
+ "SlotKeyRoute",
290
+ "SlotIdRoute",
291
+ "TSingleNodeRoute",
292
+ # Exceptions
293
+ "ClosingError",
294
+ "ConfigurationError",
295
+ "ConnectionError",
296
+ "ExecAbortError",
297
+ "GlideError",
298
+ "RequestError",
299
+ "TimeoutError",
300
+ "LoggerError",
301
+ # Ft
302
+ "DataType",
303
+ "DistanceMetricType",
304
+ "Field",
305
+ "FieldType",
306
+ "FtCreateOptions",
307
+ "NumericField",
308
+ "TagField",
309
+ "TextField",
310
+ "VectorAlgorithm",
311
+ "VectorField",
312
+ "VectorFieldAttributes",
313
+ "VectorFieldAttributesFlat",
314
+ "VectorFieldAttributesHnsw",
315
+ "VectorType",
316
+ "FtSearchLimit",
317
+ "ReturnField",
318
+ "FtSearchOptions",
319
+ "FtAggregateApply",
320
+ "FtAggregateFilter",
321
+ "FtAggregateClause",
322
+ "FtAggregateLimit",
323
+ "FtAggregateOptions",
324
+ "FtAggregateGroupBy",
325
+ "FtAggregateReducer",
326
+ "FtAggregateSortBy",
327
+ "FtAggregateSortProperty",
328
+ "FtProfileOptions",
329
+ "QueryType",
330
+ ]
File without changes