valkey-glide 1.3.5rc4__cp311-cp311-macosx_10_7_x86_64.whl → 2.0.0__cp311-cp311-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 (36) hide show
  1. glide/__init__.py +32 -8
  2. glide/async_commands/{transaction.py → batch.py} +1420 -992
  3. glide/async_commands/batch_options.py +261 -0
  4. glide/async_commands/bitmap.py +94 -85
  5. glide/async_commands/cluster_commands.py +293 -126
  6. glide/async_commands/command_args.py +7 -6
  7. glide/async_commands/core.py +1313 -721
  8. glide/async_commands/server_modules/ft.py +83 -14
  9. glide/async_commands/server_modules/ft_options/ft_aggregate_options.py +15 -8
  10. glide/async_commands/server_modules/ft_options/ft_create_options.py +23 -11
  11. glide/async_commands/server_modules/ft_options/ft_profile_options.py +12 -7
  12. glide/async_commands/server_modules/ft_options/ft_search_options.py +12 -6
  13. glide/async_commands/server_modules/glide_json.py +134 -43
  14. glide/async_commands/server_modules/json_batch.py +157 -127
  15. glide/async_commands/sorted_set.py +39 -29
  16. glide/async_commands/standalone_commands.py +202 -95
  17. glide/async_commands/stream.py +94 -87
  18. glide/config.py +253 -112
  19. glide/constants.py +8 -4
  20. glide/glide.cpython-311-darwin.so +0 -0
  21. glide/glide.pyi +25 -0
  22. glide/glide_client.py +305 -94
  23. glide/logger.py +31 -19
  24. glide/opentelemetry.py +181 -0
  25. glide/protobuf/command_request_pb2.py +15 -15
  26. glide/protobuf/command_request_pb2.pyi +75 -46
  27. glide/protobuf/connection_request_pb2.py +12 -12
  28. glide/protobuf/connection_request_pb2.pyi +36 -29
  29. glide/protobuf/response_pb2.py +6 -6
  30. glide/protobuf/response_pb2.pyi +14 -9
  31. glide/protobuf_codec.py +7 -6
  32. glide/routes.py +41 -8
  33. {valkey_glide-1.3.5rc4.dist-info → valkey_glide-2.0.0.dist-info}/METADATA +38 -14
  34. valkey_glide-2.0.0.dist-info/RECORD +39 -0
  35. valkey_glide-1.3.5rc4.dist-info/RECORD +0 -37
  36. {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 ClusterScanCursor, Script
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
- "Transaction",
191
+ "Batch",
192
+ "ClusterBatch",
178
193
  "ClusterTransaction",
194
+ "Transaction",
179
195
  "TGlideClient",
180
- "TTransaction",
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",