valkey-glide 2.2.2__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.
Binary file
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\"\x94\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\x42\x11\n\x0fperiodic_checks\"\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')
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=1871
27
- _globals['_READFROM']._serialized_end=1982
28
- _globals['_TLSMODE']._serialized_start=1984
29
- _globals['_TLSMODE']._serialized_end=2036
30
- _globals['_SERVICETYPE']._serialized_start=2038
31
- _globals['_SERVICETYPE']._serialized_end=2082
32
- _globals['_PROTOCOLVERSION']._serialized_start=2084
33
- _globals['_PROTOCOLVERSION']._serialized_end=2123
34
- _globals['_PUBSUBCHANNELTYPE']._serialized_start=2125
35
- _globals['_PUBSUBCHANNELTYPE']._serialized_end=2181
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=1727
54
- _globals['_CONNECTIONRETRYSTRATEGY']._serialized_start=1730
55
- _globals['_CONNECTIONRETRYSTRATEGY']._serialized_end=1869
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
1
  Metadata-Version: 2.1
2
2
  Name: valkey-glide
3
- Version: 2.2.2
3
+ Version: 2.2.5rc1
4
4
  Classifier: Topic :: Database
5
5
  Classifier: Topic :: Utilities
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -1,5 +1,5 @@
1
- valkey_glide-2.2.2.dist-info/METADATA,sha256=zR9n1QhTaaxGQkMDmfXw3oOuisaXJbFx8I0UHB3ETGY,6998
2
- valkey_glide-2.2.2.dist-info/WHEEL,sha256=SjFvs0za84r93yXv_seM90QIJLVMin7Qs7nbzy5Blh4,104
1
+ valkey_glide-2.2.5rc1.dist-info/METADATA,sha256=w6CrZpuFG8IzR4HvSxkcvD01g-ZagJthqpjbZz3tOh0,7001
2
+ valkey_glide-2.2.5rc1.dist-info/WHEEL,sha256=SjFvs0za84r93yXv_seM90QIJLVMin7Qs7nbzy5Blh4,104
3
3
  glide/async_commands/glide_json.py,sha256=H5dnB4vJkGPpNXJZhhVyPQoTSbkN_chq5Xw6tkP0wMQ,60410
4
4
  glide/async_commands/ft.py,sha256=1v96sBCgiXtPbj85ZurY3ruLCmok3cPoaIXSiJBEv9Y,16849
5
5
  glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
@@ -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=IScbmbbyemqw0TlkpqLgp2mFY48H2PtF2nE4K4mVGuc,43223
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=wlY76aIWKdyETOjD0Xh_B3RsfXqFwzkT0-lymAkTOes,6228
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.cpython-39-darwin.so,sha256=WLkGMxVvSZwDAQugX8lpE-Yryipb8iZgpIhdiN33Dn8,13757664
40
- valkey_glide-2.2.2.dist-info/RECORD,,
39
+ glide/glide.cpython-39-darwin.so,sha256=FS_ZmswFWMfgSb0CqoFp2R2ajIAclGejfwEzSyeLNsk,13575760
40
+ valkey_glide-2.2.5rc1.dist-info/RECORD,,