valkey-glide 2.0.1__cp311-cp311-macosx_11_0_arm64.whl → 2.1.0rc1__cp311-cp311-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.

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