valkey-glide 2.2.1rc1__cp313-cp313-macosx_10_7_x86_64.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 (40) hide show
  1. glide/__init__.py +388 -0
  2. glide/async_commands/__init__.py +5 -0
  3. glide/async_commands/cluster_commands.py +1476 -0
  4. glide/async_commands/core.py +7818 -0
  5. glide/async_commands/ft.py +465 -0
  6. glide/async_commands/glide_json.py +1269 -0
  7. glide/async_commands/standalone_commands.py +1001 -0
  8. glide/glide.cpython-313-darwin.so +0 -0
  9. glide/glide.pyi +61 -0
  10. glide/glide_client.py +821 -0
  11. glide/logger.py +97 -0
  12. glide/opentelemetry.py +185 -0
  13. glide/py.typed +0 -0
  14. glide_shared/__init__.py +330 -0
  15. glide_shared/commands/__init__.py +0 -0
  16. glide_shared/commands/batch.py +5997 -0
  17. glide_shared/commands/batch_options.py +261 -0
  18. glide_shared/commands/bitmap.py +320 -0
  19. glide_shared/commands/command_args.py +103 -0
  20. glide_shared/commands/core_options.py +407 -0
  21. glide_shared/commands/server_modules/ft_options/ft_aggregate_options.py +300 -0
  22. glide_shared/commands/server_modules/ft_options/ft_constants.py +84 -0
  23. glide_shared/commands/server_modules/ft_options/ft_create_options.py +423 -0
  24. glide_shared/commands/server_modules/ft_options/ft_profile_options.py +113 -0
  25. glide_shared/commands/server_modules/ft_options/ft_search_options.py +139 -0
  26. glide_shared/commands/server_modules/json_batch.py +820 -0
  27. glide_shared/commands/server_modules/json_options.py +93 -0
  28. glide_shared/commands/sorted_set.py +412 -0
  29. glide_shared/commands/stream.py +449 -0
  30. glide_shared/config.py +975 -0
  31. glide_shared/constants.py +124 -0
  32. glide_shared/exceptions.py +88 -0
  33. glide_shared/protobuf/command_request_pb2.py +56 -0
  34. glide_shared/protobuf/connection_request_pb2.py +56 -0
  35. glide_shared/protobuf/response_pb2.py +32 -0
  36. glide_shared/protobuf_codec.py +110 -0
  37. glide_shared/routes.py +161 -0
  38. valkey_glide-2.2.1rc1.dist-info/METADATA +210 -0
  39. valkey_glide-2.2.1rc1.dist-info/RECORD +40 -0
  40. valkey_glide-2.2.1rc1.dist-info/WHEEL +4 -0
glide/__init__.py ADDED
@@ -0,0 +1,388 @@
1
+ # Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
2
+
3
+ import sys
4
+ import types
5
+ import warnings
6
+
7
+ from glide.glide import (
8
+ ClusterScanCursor,
9
+ OpenTelemetryConfig,
10
+ OpenTelemetryMetricsConfig,
11
+ OpenTelemetryTracesConfig,
12
+ Script,
13
+ )
14
+ from glide_shared import (
15
+ OK,
16
+ TOK,
17
+ AdvancedGlideClientConfiguration,
18
+ AdvancedGlideClusterClientConfiguration,
19
+ AggregationType,
20
+ AllNodes,
21
+ AllPrimaries,
22
+ BackoffStrategy,
23
+ Batch,
24
+ BatchOptions,
25
+ BatchRetryStrategy,
26
+ BitEncoding,
27
+ BitFieldGet,
28
+ BitFieldIncrBy,
29
+ BitFieldOffset,
30
+ BitFieldOverflow,
31
+ BitFieldSet,
32
+ BitFieldSubCommands,
33
+ BitmapIndexType,
34
+ BitOffset,
35
+ BitOffsetMultiplier,
36
+ BitOverflowControl,
37
+ BitwiseOperation,
38
+ ByAddressRoute,
39
+ ClosingError,
40
+ ClusterBatch,
41
+ ClusterBatchOptions,
42
+ ClusterTransaction,
43
+ ConditionalChange,
44
+ ConfigurationError,
45
+ ConnectionError,
46
+ DataType,
47
+ DistanceMetricType,
48
+ ExclusiveIdBound,
49
+ ExecAbortError,
50
+ ExpireOptions,
51
+ ExpiryGetEx,
52
+ ExpirySet,
53
+ ExpiryType,
54
+ ExpiryTypeGetEx,
55
+ Field,
56
+ FieldType,
57
+ FlushMode,
58
+ FtAggregateApply,
59
+ FtAggregateClause,
60
+ FtAggregateFilter,
61
+ FtAggregateGroupBy,
62
+ FtAggregateLimit,
63
+ FtAggregateOptions,
64
+ FtAggregateReducer,
65
+ FtAggregateResponse,
66
+ FtAggregateSortBy,
67
+ FtAggregateSortProperty,
68
+ FtCreateOptions,
69
+ FtInfoResponse,
70
+ FtProfileOptions,
71
+ FtProfileResponse,
72
+ FtSearchLimit,
73
+ FtSearchOptions,
74
+ FtSearchResponse,
75
+ FunctionRestorePolicy,
76
+ GeoSearchByBox,
77
+ GeoSearchByRadius,
78
+ GeoSearchCount,
79
+ GeospatialData,
80
+ GeoUnit,
81
+ GlideClientConfiguration,
82
+ GlideClusterClientConfiguration,
83
+ GlideError,
84
+ HashFieldConditionalChange,
85
+ IamAuthConfig,
86
+ IdBound,
87
+ InfBound,
88
+ InfoSection,
89
+ InsertPosition,
90
+ JsonArrIndexOptions,
91
+ JsonArrPopOptions,
92
+ JsonGetOptions,
93
+ LexBoundary,
94
+ Limit,
95
+ ListDirection,
96
+ MaxId,
97
+ MinId,
98
+ NodeAddress,
99
+ NumericField,
100
+ ObjectType,
101
+ OffsetOptions,
102
+ OnlyIfEqual,
103
+ OrderBy,
104
+ PeriodicChecksManualInterval,
105
+ PeriodicChecksStatus,
106
+ ProtocolVersion,
107
+ PubSubMsg,
108
+ QueryType,
109
+ RandomNode,
110
+ RangeByIndex,
111
+ RangeByLex,
112
+ RangeByScore,
113
+ ReadFrom,
114
+ RequestError,
115
+ ReturnField,
116
+ Route,
117
+ ScoreBoundary,
118
+ ScoreFilter,
119
+ ServerCredentials,
120
+ ServiceType,
121
+ SignedEncoding,
122
+ SlotIdRoute,
123
+ SlotKeyRoute,
124
+ SlotType,
125
+ StreamAddOptions,
126
+ StreamClaimOptions,
127
+ StreamGroupOptions,
128
+ StreamPendingOptions,
129
+ StreamRangeBound,
130
+ StreamReadGroupOptions,
131
+ StreamReadOptions,
132
+ StreamTrimOptions,
133
+ TagField,
134
+ TBatch,
135
+ TClusterResponse,
136
+ TEncodable,
137
+ TextField,
138
+ TFunctionListResponse,
139
+ TFunctionStatsFullResponse,
140
+ TFunctionStatsSingleNodeResponse,
141
+ TimeoutError,
142
+ TJsonResponse,
143
+ TJsonUniversalResponse,
144
+ TlsAdvancedConfiguration,
145
+ Transaction,
146
+ TResult,
147
+ TrimByMaxLen,
148
+ TrimByMinId,
149
+ TSingleNodeRoute,
150
+ TXInfoStreamFullResponse,
151
+ TXInfoStreamResponse,
152
+ UnsignedEncoding,
153
+ UpdateOptions,
154
+ VectorAlgorithm,
155
+ VectorField,
156
+ VectorFieldAttributes,
157
+ VectorFieldAttributesFlat,
158
+ VectorFieldAttributesHnsw,
159
+ VectorType,
160
+ json_batch,
161
+ )
162
+
163
+ from .async_commands import ft, glide_json
164
+ from .glide_client import GlideClient, GlideClusterClient, TGlideClient
165
+ from .logger import Level as LogLevel
166
+ from .logger import Logger
167
+
168
+ _glide_module = sys.modules[__name__]
169
+
170
+ _legacy_modules = [
171
+ "glide.exceptions",
172
+ "glide.config",
173
+ "glide.constants",
174
+ "glide.routes",
175
+ "glide.async_commands",
176
+ "glide.async_commands.batch",
177
+ "glide.async_commands.batch_options",
178
+ "glide.async_commands.bitmap",
179
+ "glide.async_commands.command_args",
180
+ "glide.async_commands.server_modules",
181
+ "glide.async_commands.server_modules.ft_options",
182
+ "glide.async_commands.server_modules.ft_options.ft_aggregate_options",
183
+ "glide.async_commands.server_modules.ft_options.ft_create_options",
184
+ "glide.async_commands.server_modules.ft_options.ft_profile_options",
185
+ "glide.async_commands.server_modules.ft_options.ft_search_options",
186
+ "glide.async_commands.server_modules.glide_json",
187
+ "glide.async_commands.sorted_set",
188
+ "glide.async_commands.stream",
189
+ ]
190
+
191
+
192
+ class _LegacyModule(types.ModuleType):
193
+ """Proxy for a deprecated module that warns when first accessed."""
194
+
195
+ def __init__(self, name):
196
+ super().__init__(name)
197
+ self._warned = False
198
+
199
+ def __getattr__(self, name):
200
+ if not self._warned:
201
+ warnings.warn(
202
+ f"Importing from '{self.__name__}' is deprecated. "
203
+ f"Please import directly from 'glide' instead.",
204
+ DeprecationWarning,
205
+ stacklevel=2,
206
+ )
207
+ self._warned = True
208
+
209
+ # Access the attribute from the real top-level glide module
210
+ return getattr(_glide_module, name)
211
+
212
+
213
+ # Replace old modules with lazy proxy modules
214
+ for old_name in _legacy_modules:
215
+ if old_name not in sys.modules:
216
+ sys.modules[old_name] = _LegacyModule(old_name)
217
+
218
+ __all__ = [
219
+ # Client
220
+ "TGlideClient",
221
+ "GlideClient",
222
+ "GlideClusterClient",
223
+ "Batch",
224
+ "ClusterBatch",
225
+ "ClusterTransaction",
226
+ "Transaction",
227
+ "TBatch",
228
+ # Batch Options
229
+ "BatchOptions",
230
+ "BatchRetryStrategy",
231
+ "ClusterBatchOptions",
232
+ # Config
233
+ "AdvancedGlideClientConfiguration",
234
+ "AdvancedGlideClusterClientConfiguration",
235
+ "GlideClientConfiguration",
236
+ "GlideClusterClientConfiguration",
237
+ "BackoffStrategy",
238
+ "ReadFrom",
239
+ "ServerCredentials",
240
+ "ServiceType",
241
+ "IamAuthConfig",
242
+ "NodeAddress",
243
+ "OpenTelemetryConfig",
244
+ "OpenTelemetryMetricsConfig",
245
+ "OpenTelemetryTracesConfig",
246
+ "ProtocolVersion",
247
+ "PeriodicChecksManualInterval",
248
+ "PeriodicChecksStatus",
249
+ "TlsAdvancedConfiguration",
250
+ # Response
251
+ "OK",
252
+ "TClusterResponse",
253
+ "TEncodable",
254
+ "TFunctionListResponse",
255
+ "TFunctionStatsFullResponse",
256
+ "TFunctionStatsSingleNodeResponse",
257
+ "TJsonResponse",
258
+ "TJsonUniversalResponse",
259
+ "TOK",
260
+ "TResult",
261
+ "TXInfoStreamFullResponse",
262
+ "TXInfoStreamResponse",
263
+ "FtAggregateResponse",
264
+ "FtInfoResponse",
265
+ "FtProfileResponse",
266
+ "FtSearchResponse",
267
+ # Commands
268
+ "BitEncoding",
269
+ "BitFieldGet",
270
+ "BitFieldIncrBy",
271
+ "BitFieldOffset",
272
+ "BitFieldOverflow",
273
+ "BitFieldSet",
274
+ "BitFieldSubCommands",
275
+ "BitmapIndexType",
276
+ "BitOffset",
277
+ "BitOffsetMultiplier",
278
+ "BitOverflowControl",
279
+ "BitwiseOperation",
280
+ "OffsetOptions",
281
+ "SignedEncoding",
282
+ "UnsignedEncoding",
283
+ "Script",
284
+ "ScoreBoundary",
285
+ "ConditionalChange",
286
+ "OnlyIfEqual",
287
+ "ExpireOptions",
288
+ "ExpiryGetEx",
289
+ "ExpirySet",
290
+ "ExpiryType",
291
+ "ExpiryTypeGetEx",
292
+ "FlushMode",
293
+ "FunctionRestorePolicy",
294
+ "GeoSearchByBox",
295
+ "GeoSearchByRadius",
296
+ "GeoSearchCount",
297
+ "GeoUnit",
298
+ "GeospatialData",
299
+ "HashFieldConditionalChange",
300
+ "AggregationType",
301
+ "InfBound",
302
+ "InfoSection",
303
+ "InsertPosition",
304
+ "LexBoundary",
305
+ "Limit",
306
+ "ListDirection",
307
+ "RangeByIndex",
308
+ "RangeByLex",
309
+ "RangeByScore",
310
+ "ScoreFilter",
311
+ "ObjectType",
312
+ "OrderBy",
313
+ "ExclusiveIdBound",
314
+ "IdBound",
315
+ "MaxId",
316
+ "MinId",
317
+ "StreamAddOptions",
318
+ "StreamClaimOptions",
319
+ "StreamGroupOptions",
320
+ "StreamPendingOptions",
321
+ "StreamReadGroupOptions",
322
+ "StreamRangeBound",
323
+ "StreamReadOptions",
324
+ "StreamTrimOptions",
325
+ "TrimByMaxLen",
326
+ "TrimByMinId",
327
+ "UpdateOptions",
328
+ "ClusterScanCursor",
329
+ # PubSub
330
+ "PubSubMsg",
331
+ # Json
332
+ "glide_json",
333
+ "json_batch",
334
+ "JsonGetOptions",
335
+ "JsonArrIndexOptions",
336
+ "JsonArrPopOptions",
337
+ # Logger
338
+ "Logger",
339
+ "LogLevel",
340
+ # Routes
341
+ "Route",
342
+ "SlotType",
343
+ "AllNodes",
344
+ "AllPrimaries",
345
+ "ByAddressRoute",
346
+ "RandomNode",
347
+ "SlotKeyRoute",
348
+ "SlotIdRoute",
349
+ "TSingleNodeRoute",
350
+ # Exceptions
351
+ "ClosingError",
352
+ "ConfigurationError",
353
+ "ConnectionError",
354
+ "ExecAbortError",
355
+ "GlideError",
356
+ "RequestError",
357
+ "TimeoutError",
358
+ # Ft
359
+ "ft",
360
+ "DataType",
361
+ "DistanceMetricType",
362
+ "Field",
363
+ "FieldType",
364
+ "FtCreateOptions",
365
+ "NumericField",
366
+ "TagField",
367
+ "TextField",
368
+ "VectorAlgorithm",
369
+ "VectorField",
370
+ "VectorFieldAttributes",
371
+ "VectorFieldAttributesFlat",
372
+ "VectorFieldAttributesHnsw",
373
+ "VectorType",
374
+ "FtSearchLimit",
375
+ "ReturnField",
376
+ "FtSearchOptions",
377
+ "FtAggregateApply",
378
+ "FtAggregateFilter",
379
+ "FtAggregateClause",
380
+ "FtAggregateLimit",
381
+ "FtAggregateOptions",
382
+ "FtAggregateGroupBy",
383
+ "FtAggregateReducer",
384
+ "FtAggregateSortBy",
385
+ "FtAggregateSortProperty",
386
+ "FtProfileOptions",
387
+ "QueryType",
388
+ ]
@@ -0,0 +1,5 @@
1
+ # Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
2
+
3
+ from .core import CoreCommands
4
+
5
+ __all__ = ["CoreCommands"]