valkey-glide 2.2.3rc1__pp310-pypy310_pp73-macosx_11_0_arm64.whl → 2.2.6__pp310-pypy310_pp73-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/async_commands/glide_json.py +1 -0
- glide/glide.pypy310-pp73-darwin.so +0 -0
- glide/glide_client.py +4 -4
- glide_shared/config.py +13 -2
- glide_shared/protobuf/connection_request_pb2.py +14 -14
- {valkey_glide-2.2.3rc1.dist-info → valkey_glide-2.2.6.dist-info}/METADATA +1 -1
- {valkey_glide-2.2.3rc1.dist-info → valkey_glide-2.2.6.dist-info}/RECORD +8 -8
- {valkey_glide-2.2.3rc1.dist-info → valkey_glide-2.2.6.dist-info}/WHEEL +0 -0
|
Binary file
|
glide/glide_client.py
CHANGED
|
@@ -424,7 +424,7 @@ class BaseClient(CoreCommands):
|
|
|
424
424
|
bytes(elem, encoding="utf8") if isinstance(elem, str) else elem
|
|
425
425
|
for elem in args
|
|
426
426
|
]
|
|
427
|
-
|
|
427
|
+
encoded_args, args_size = self._encode_and_sum_size(args)
|
|
428
428
|
if args_size < MAX_REQUEST_ARGS_LEN:
|
|
429
429
|
request.single_command.args_array.args[:] = encoded_args
|
|
430
430
|
else:
|
|
@@ -469,7 +469,7 @@ class BaseClient(CoreCommands):
|
|
|
469
469
|
command.request_type = requst_type
|
|
470
470
|
# For now, we allow the user to pass the command as array of strings
|
|
471
471
|
# we convert them here into bytes (the datatype that our rust core expects)
|
|
472
|
-
|
|
472
|
+
encoded_args, args_size = self._encode_and_sum_size(args)
|
|
473
473
|
if args_size < MAX_REQUEST_ARGS_LEN:
|
|
474
474
|
command.args_array.args[:] = encoded_args
|
|
475
475
|
else:
|
|
@@ -503,8 +503,8 @@ class BaseClient(CoreCommands):
|
|
|
503
503
|
)
|
|
504
504
|
request = CommandRequest()
|
|
505
505
|
request.callback_idx = self._get_callback_index()
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
encoded_keys, keys_size = self._encode_and_sum_size(keys)
|
|
507
|
+
encoded_args, args_size = self._encode_and_sum_size(args)
|
|
508
508
|
if (keys_size + args_size) < MAX_REQUEST_ARGS_LEN:
|
|
509
509
|
request.script_invocation.hash = hash
|
|
510
510
|
request.script_invocation.keys[:] = encoded_keys
|
glide_shared/config.py
CHANGED
|
@@ -289,15 +289,21 @@ class AdvancedBaseClientConfiguration:
|
|
|
289
289
|
tls_config (Optional[TlsAdvancedConfiguration]): The advanced TLS configuration settings.
|
|
290
290
|
This allows for more granular control of TLS behavior, such as enabling an insecure mode
|
|
291
291
|
that bypasses certificate validation.
|
|
292
|
+
tcp_nodelay (Optional[bool]): Controls TCP_NODELAY socket option (Nagle's algorithm).
|
|
293
|
+
When True, disables Nagle's algorithm for lower latency by sending packets immediately without buffering.
|
|
294
|
+
When False, enables Nagle's algorithm to reduce network overhead by buffering small packets.
|
|
295
|
+
If not explicitly set, defaults to True.
|
|
292
296
|
"""
|
|
293
297
|
|
|
294
298
|
def __init__(
|
|
295
299
|
self,
|
|
296
300
|
connection_timeout: Optional[int] = None,
|
|
297
301
|
tls_config: Optional[TlsAdvancedConfiguration] = None,
|
|
302
|
+
tcp_nodelay: Optional[bool] = None,
|
|
298
303
|
):
|
|
299
304
|
self.connection_timeout = connection_timeout
|
|
300
305
|
self.tls_config = tls_config
|
|
306
|
+
self.tcp_nodelay = tcp_nodelay
|
|
301
307
|
|
|
302
308
|
def _create_a_protobuf_conn_request(
|
|
303
309
|
self, request: ConnectionRequest
|
|
@@ -305,6 +311,9 @@ class AdvancedBaseClientConfiguration:
|
|
|
305
311
|
if self.connection_timeout:
|
|
306
312
|
request.connection_timeout = self.connection_timeout
|
|
307
313
|
|
|
314
|
+
if self.tcp_nodelay is not None:
|
|
315
|
+
request.tcp_nodelay = self.tcp_nodelay
|
|
316
|
+
|
|
308
317
|
if self.tls_config:
|
|
309
318
|
if self.tls_config.use_insecure_tls:
|
|
310
319
|
# Validate that TLS is enabled before allowing insecure mode
|
|
@@ -564,9 +573,10 @@ class AdvancedGlideClientConfiguration(AdvancedBaseClientConfiguration):
|
|
|
564
573
|
self,
|
|
565
574
|
connection_timeout: Optional[int] = None,
|
|
566
575
|
tls_config: Optional[TlsAdvancedConfiguration] = None,
|
|
576
|
+
tcp_nodelay: Optional[bool] = None,
|
|
567
577
|
):
|
|
568
578
|
|
|
569
|
-
super().__init__(connection_timeout, tls_config)
|
|
579
|
+
super().__init__(connection_timeout, tls_config, tcp_nodelay)
|
|
570
580
|
|
|
571
581
|
|
|
572
582
|
class GlideClientConfiguration(BaseClientConfiguration):
|
|
@@ -744,8 +754,9 @@ class AdvancedGlideClusterClientConfiguration(AdvancedBaseClientConfiguration):
|
|
|
744
754
|
connection_timeout: Optional[int] = None,
|
|
745
755
|
tls_config: Optional[TlsAdvancedConfiguration] = None,
|
|
746
756
|
refresh_topology_from_initial_nodes: bool = False,
|
|
757
|
+
tcp_nodelay: Optional[bool] = None,
|
|
747
758
|
):
|
|
748
|
-
super().__init__(connection_timeout, tls_config)
|
|
759
|
+
super().__init__(connection_timeout, tls_config, tcp_nodelay)
|
|
749
760
|
self.refresh_topology_from_initial_nodes = refresh_topology_from_initial_nodes
|
|
750
761
|
|
|
751
762
|
def _create_a_protobuf_conn_request(
|
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!protobuf/connection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"\x8e\x01\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12@\n\x0fiam_credentials\x18\x03 \x01(\x0b\x32\".connection_request.IamCredentialsH\x00\x88\x01\x01\x42\x12\n\x10_iam_credentials\"\xb1\x01\n\x0eIamCredentials\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x35\n\x0cservice_type\x18\x03 \x01(\x0e\x32\x1f.connection_request.ServiceType\x12%\n\x18refresh_interval_seconds\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x1b\n\x19_refresh_interval_seconds\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"\
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!protobuf/connection_request.proto\x12\x12\x63onnection_request\")\n\x0bNodeAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\r\"\x8e\x01\n\x12\x41uthenticationInfo\x12\x10\n\x08password\x18\x01 \x01(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12@\n\x0fiam_credentials\x18\x03 \x01(\x0b\x32\".connection_request.IamCredentialsH\x00\x88\x01\x01\x42\x12\n\x10_iam_credentials\"\xb1\x01\n\x0eIamCredentials\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x35\n\x0cservice_type\x18\x03 \x01(\x0e\x32\x1f.connection_request.ServiceType\x12%\n\x18refresh_interval_seconds\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x1b\n\x19_refresh_interval_seconds\"7\n\x1cPeriodicChecksManualInterval\x12\x17\n\x0f\x64uration_in_sec\x18\x01 \x01(\r\"\x18\n\x16PeriodicChecksDisabled\"8\n\x18PubSubChannelsOrPatterns\x12\x1c\n\x14\x63hannels_or_patterns\x18\x01 \x03(\x0c\"\xf1\x01\n\x13PubSubSubscriptions\x12k\n\x1c\x63hannels_or_patterns_by_type\x18\x01 \x03(\x0b\x32\x45.connection_request.PubSubSubscriptions.ChannelsOrPatternsByTypeEntry\x1am\n\x1d\x43hannelsOrPatternsByTypeEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.connection_request.PubSubChannelsOrPatterns:\x02\x38\x01\"\xbe\x07\n\x11\x43onnectionRequest\x12\x32\n\taddresses\x18\x01 \x03(\x0b\x32\x1f.connection_request.NodeAddress\x12-\n\x08tls_mode\x18\x02 \x01(\x0e\x32\x1b.connection_request.TlsMode\x12\x1c\n\x14\x63luster_mode_enabled\x18\x03 \x01(\x08\x12\x17\n\x0frequest_timeout\x18\x04 \x01(\r\x12/\n\tread_from\x18\x05 \x01(\x0e\x32\x1c.connection_request.ReadFrom\x12N\n\x19\x63onnection_retry_strategy\x18\x06 \x01(\x0b\x32+.connection_request.ConnectionRetryStrategy\x12\x43\n\x13\x61uthentication_info\x18\x07 \x01(\x0b\x32&.connection_request.AuthenticationInfo\x12\x13\n\x0b\x64\x61tabase_id\x18\x08 \x01(\r\x12\x35\n\x08protocol\x18\t \x01(\x0e\x32#.connection_request.ProtocolVersion\x12\x13\n\x0b\x63lient_name\x18\n \x01(\t\x12[\n\x1fperiodic_checks_manual_interval\x18\x0b \x01(\x0b\x32\x30.connection_request.PeriodicChecksManualIntervalH\x00\x12N\n\x18periodic_checks_disabled\x18\x0c \x01(\x0b\x32*.connection_request.PeriodicChecksDisabledH\x00\x12\x45\n\x14pubsub_subscriptions\x18\r \x01(\x0b\x32\'.connection_request.PubSubSubscriptions\x12\x1f\n\x17inflight_requests_limit\x18\x0e \x01(\r\x12\x11\n\tclient_az\x18\x0f \x01(\t\x12\x1a\n\x12\x63onnection_timeout\x18\x10 \x01(\r\x12\x14\n\x0clazy_connect\x18\x11 \x01(\x08\x12+\n#refresh_topology_from_initial_nodes\x18\x12 \x01(\x08\x12\x10\n\x08lib_name\x18\x13 \x01(\t\x12\x12\n\nroot_certs\x18\x14 \x03(\x0c\x12\x18\n\x0btcp_nodelay\x18\x18 \x01(\x08H\x01\x88\x01\x01\x42\x11\n\x0fperiodic_checksB\x0e\n\x0c_tcp_nodelay\"\x8b\x01\n\x17\x43onnectionRetryStrategy\x12\x19\n\x11number_of_retries\x18\x01 \x01(\r\x12\x0e\n\x06\x66\x61\x63tor\x18\x02 \x01(\r\x12\x15\n\rexponent_base\x18\x03 \x01(\r\x12\x1b\n\x0ejitter_percent\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x11\n\x0f_jitter_percent*o\n\x08ReadFrom\x12\x0b\n\x07Primary\x10\x00\x12\x11\n\rPreferReplica\x10\x01\x12\x11\n\rLowestLatency\x10\x02\x12\x0e\n\nAZAffinity\x10\x03\x12 \n\x1c\x41ZAffinityReplicasAndPrimary\x10\x04*4\n\x07TlsMode\x12\t\n\x05NoTls\x10\x00\x12\r\n\tSecureTls\x10\x01\x12\x0f\n\x0bInsecureTls\x10\x02*,\n\x0bServiceType\x12\x0f\n\x0b\x45LASTICACHE\x10\x00\x12\x0c\n\x08MEMORYDB\x10\x01*\'\n\x0fProtocolVersion\x12\t\n\x05RESP3\x10\x00\x12\t\n\x05RESP2\x10\x01*8\n\x11PubSubChannelType\x12\t\n\x05\x45xact\x10\x00\x12\x0b\n\x07Pattern\x10\x01\x12\x0b\n\x07Sharded\x10\x02\x62\x06proto3')
|
|
18
18
|
|
|
19
19
|
_globals = globals()
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,16 +23,16 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
23
23
|
DESCRIPTOR._options = None
|
|
24
24
|
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._options = None
|
|
25
25
|
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_options = b'8\001'
|
|
26
|
-
_globals['_READFROM']._serialized_start=
|
|
27
|
-
_globals['_READFROM']._serialized_end=
|
|
28
|
-
_globals['_TLSMODE']._serialized_start=
|
|
29
|
-
_globals['_TLSMODE']._serialized_end=
|
|
30
|
-
_globals['_SERVICETYPE']._serialized_start=
|
|
31
|
-
_globals['_SERVICETYPE']._serialized_end=
|
|
32
|
-
_globals['_PROTOCOLVERSION']._serialized_start=
|
|
33
|
-
_globals['_PROTOCOLVERSION']._serialized_end=
|
|
34
|
-
_globals['_PUBSUBCHANNELTYPE']._serialized_start=
|
|
35
|
-
_globals['_PUBSUBCHANNELTYPE']._serialized_end=
|
|
26
|
+
_globals['_READFROM']._serialized_start=1913
|
|
27
|
+
_globals['_READFROM']._serialized_end=2024
|
|
28
|
+
_globals['_TLSMODE']._serialized_start=2026
|
|
29
|
+
_globals['_TLSMODE']._serialized_end=2078
|
|
30
|
+
_globals['_SERVICETYPE']._serialized_start=2080
|
|
31
|
+
_globals['_SERVICETYPE']._serialized_end=2124
|
|
32
|
+
_globals['_PROTOCOLVERSION']._serialized_start=2126
|
|
33
|
+
_globals['_PROTOCOLVERSION']._serialized_end=2165
|
|
34
|
+
_globals['_PUBSUBCHANNELTYPE']._serialized_start=2167
|
|
35
|
+
_globals['_PUBSUBCHANNELTYPE']._serialized_end=2223
|
|
36
36
|
_globals['_NODEADDRESS']._serialized_start=57
|
|
37
37
|
_globals['_NODEADDRESS']._serialized_end=98
|
|
38
38
|
_globals['_AUTHENTICATIONINFO']._serialized_start=101
|
|
@@ -50,7 +50,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
50
50
|
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_start=699
|
|
51
51
|
_globals['_PUBSUBSUBSCRIPTIONS_CHANNELSORPATTERNSBYTYPEENTRY']._serialized_end=808
|
|
52
52
|
_globals['_CONNECTIONREQUEST']._serialized_start=811
|
|
53
|
-
_globals['_CONNECTIONREQUEST']._serialized_end=
|
|
54
|
-
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=
|
|
55
|
-
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=
|
|
53
|
+
_globals['_CONNECTIONREQUEST']._serialized_end=1769
|
|
54
|
+
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=1772
|
|
55
|
+
_globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=1911
|
|
56
56
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
valkey_glide-2.2.
|
|
2
|
-
valkey_glide-2.2.
|
|
3
|
-
glide/async_commands/glide_json.py,sha256=
|
|
1
|
+
valkey_glide-2.2.6.dist-info/METADATA,sha256=xK6sKY_-byzq3eEKkLRoH2Zed-5WdgGhb14wqIsS1q4,6998
|
|
2
|
+
valkey_glide-2.2.6.dist-info/WHEEL,sha256=CEpzeqTgPAnbwqz1A86d63GB0WHtHXcoGEEroCTkAPA,113
|
|
3
|
+
glide/async_commands/glide_json.py,sha256=oTyEEUHMudbrNu_Bg3xfv_5fApa3Thg_JH6kqlEqcw8,60411
|
|
4
4
|
glide/async_commands/ft.py,sha256=1v96sBCgiXtPbj85ZurY3ruLCmok3cPoaIXSiJBEv9Y,16849
|
|
5
5
|
glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
|
|
6
6
|
glide/async_commands/core.py,sha256=x6lu7xt_pLR5drYDzNHTj0ORYX_oL73v2ZN4yxrTxGk,330289
|
|
@@ -9,7 +9,7 @@ glide/async_commands/cluster_commands.py,sha256=NbRijIA22tDaBZg3VlBPUBGmgZ5elq5K
|
|
|
9
9
|
glide/__init__.py,sha256=u_9M1dUNtZcI8AwbgnA_8Aox81Xbv_oLvn2ApSOmHCY,8843
|
|
10
10
|
glide/glide.pyi,sha256=6JIpAeADQ-1fU1Mp99pyh7aJORDxAAdtQebV5aByIVI,2093
|
|
11
11
|
glide/opentelemetry.py,sha256=vg9fTYXj7_rni7hVBkZBJ1ZN4-RSGde5fOH4DsnVx_4,7476
|
|
12
|
-
glide/glide_client.py,sha256=
|
|
12
|
+
glide/glide_client.py,sha256=ERbW14w53z9_b4lOay8PeMz2-qWPacF3-jQBg6EDm_s,32973
|
|
13
13
|
glide/logger.py,sha256=5-bAhfH_6hYEXdcgBR9R_wdeffSLHqEN-aQeIyMHnYY,4103
|
|
14
14
|
glide/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
glide_shared/__init__.py,sha256=CWiz6vdOysZ-J8skev8VIXG2SPdNaJ8lk-5emGAzzE4,7217
|
|
@@ -28,13 +28,13 @@ glide_shared/commands/server_modules/json_batch.py,sha256=uqkLXPCOkzp53GfffnII1x
|
|
|
28
28
|
glide_shared/commands/server_modules/json_options.py,sha256=0dFk3EEtcERpmkNoO8930MqfEHLVaQRBRcg3CpL7nmE,3042
|
|
29
29
|
glide_shared/commands/sorted_set.py,sha256=hnXud0Ewn1uBdM6T2xzfCneZWfTeP-2U0XfEDGNCqlI,11466
|
|
30
30
|
glide_shared/commands/stream.py,sha256=MlllDP3teVX8BOB4ANb0JFC4RkUp8SQLCGlGMSPU_s4,15589
|
|
31
|
-
glide_shared/config.py,sha256=
|
|
31
|
+
glide_shared/config.py,sha256=zwx_cKimzoj9Ey84g6N1BaMBBztPLaq5hfrg0F-opuM,43883
|
|
32
32
|
glide_shared/constants.py,sha256=pS7Xbjvq_qG3mlolVf51cCAGzXRhGdhvGIs2QK3R_b4,4375
|
|
33
33
|
glide_shared/exceptions.py,sha256=Z_szeAE-m1gsoBr5bPQymF6W6wiaunoHvBrt1dHbiYw,1852
|
|
34
34
|
glide_shared/protobuf/command_request_pb2.py,sha256=FIumn0p54n24pNykzWOoSGHQqvaY8-XopLWO0VqqKSI,19539
|
|
35
|
-
glide_shared/protobuf/connection_request_pb2.py,sha256=
|
|
35
|
+
glide_shared/protobuf/connection_request_pb2.py,sha256=Nb8DX80_HPcv7wg0YYvMY3cZQwXKU-78eJyQUr-N2i8,6311
|
|
36
36
|
glide_shared/protobuf/response_pb2.py,sha256=oT2GHUwjrxvBVdINRKCvb3_BFN0Fq2wqwHbTj7KAX2E,2110
|
|
37
37
|
glide_shared/protobuf_codec.py,sha256=xwt4-D4WbvNIY_vjOd-00c73HOyNjWq7nN-Z718PBVA,3667
|
|
38
38
|
glide_shared/routes.py,sha256=HFccxCzXQXSi6Y1HFsRUm9ZcbJgCrar6y6uOWpGJWe0,4746
|
|
39
|
-
glide/glide.pypy310-pp73-darwin.so,sha256=
|
|
40
|
-
valkey_glide-2.2.
|
|
39
|
+
glide/glide.pypy310-pp73-darwin.so,sha256=QmO51MWMBrFVN0qHHZbi6UdUJjasaiA9VktgAYogPvM,13559040
|
|
40
|
+
valkey_glide-2.2.6.dist-info/RECORD,,
|
|
File without changes
|