valkey-glide 2.0.0rc6__cp311-cp311-macosx_11_0_arm64.whl → 2.0.0rc7__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.

@@ -55,7 +55,6 @@ from glide.async_commands.stream import (
55
55
  _create_xpending_range_args,
56
56
  )
57
57
  from glide.constants import TEncodable
58
- from glide.exceptions import RequestError
59
58
  from glide.protobuf.command_request_pb2 import RequestType
60
59
 
61
60
  if sys.version_info >= (3, 13):
@@ -2318,10 +2317,6 @@ class BaseBatch:
2318
2317
  args.append("REPLACE")
2319
2318
  if absttl is True:
2320
2319
  args.append("ABSTTL")
2321
- if idletime is not None and frequency is not None:
2322
- raise RequestError(
2323
- "syntax error: IDLETIME and FREQ cannot be set at the same time."
2324
- )
2325
2320
  if idletime is not None:
2326
2321
  args.extend(["IDLETIME", str(idletime)])
2327
2322
  if frequency is not None:
@@ -5589,7 +5584,7 @@ class ClusterBatch(BaseBatch):
5589
5584
  # TODO: add all CLUSTER commands
5590
5585
 
5591
5586
 
5592
- @deprecated("Use ClusterBatch(is_atomic=True) instead.")
5587
+ @deprecated("Use Batch(is_atomic=True) instead.")
5593
5588
  class Transaction(Batch):
5594
5589
  def __init__(self):
5595
5590
  super().__init__(is_atomic=True)
@@ -61,7 +61,6 @@ from glide.constants import (
61
61
  TXInfoStreamFullResponse,
62
62
  TXInfoStreamResponse,
63
63
  )
64
- from glide.exceptions import RequestError
65
64
  from glide.protobuf.command_request_pb2 import RequestType
66
65
  from glide.routes import Route
67
66
 
@@ -6650,10 +6649,6 @@ class CoreCommands(Protocol):
6650
6649
  args.append("REPLACE")
6651
6650
  if absttl is True:
6652
6651
  args.append("ABSTTL")
6653
- if idletime is not None and frequency is not None:
6654
- raise RequestError(
6655
- "syntax error: IDLETIME and FREQ cannot be set at the same time."
6656
- )
6657
6652
  if idletime is not None:
6658
6653
  args.extend(["IDLETIME", str(idletime)])
6659
6654
  if frequency is not None:
Binary file
glide/glide_client.py CHANGED
@@ -397,7 +397,7 @@ class BaseClient(CoreCommands):
397
397
  for arg in args_list:
398
398
  encoded_arg = self._encode_arg(arg) if isinstance(arg, str) else arg
399
399
  encoded_args_list.append(encoded_arg)
400
- args_size += sys.getsizeof(encoded_arg)
400
+ args_size += len(encoded_arg)
401
401
  return (encoded_args_list, args_size)
402
402
 
403
403
  async def _execute_command(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: valkey-glide
3
- Version: 2.0.0rc6
3
+ Version: 2.0.0rc7
4
4
  Classifier: Topic :: Database
5
5
  Classifier: Topic :: Utilities
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -1,12 +1,12 @@
1
- valkey_glide-2.0.0rc6.dist-info/METADATA,sha256=yOI45wSVq6bfF0HKNWungAYTiHdVrsLyn_lf57cznRg,5650
2
- valkey_glide-2.0.0rc6.dist-info/WHEEL,sha256=8hoTVLxyLdG351Jq1HozDQCHHiKu32mfNA2_wpcO9P4,106
1
+ valkey_glide-2.0.0rc7.dist-info/METADATA,sha256=JZCHx9sqjhS0Tj05RJ22jjPa_QvUQmDfNMQ0IknjfHE,5650
2
+ valkey_glide-2.0.0rc7.dist-info/WHEEL,sha256=8hoTVLxyLdG351Jq1HozDQCHHiKu32mfNA2_wpcO9P4,106
3
3
  glide/config.py,sha256=1IkmvCPLU9nm7EpwcvYT3URoLWApWGr6eSRmuyPXDyA,28891
4
4
  glide/protobuf_codec.py,sha256=xwt4-D4WbvNIY_vjOd-00c73HOyNjWq7nN-Z718PBVA,3667
5
5
  glide/constants.py,sha256=Kb-wTQrcshjCivNXcrrOzz7xp7pNL_-Gt6Updiq9k4o,4354
6
6
  glide/async_commands/sorted_set.py,sha256=nALPJQNNjW7dAqXMDJIur_xDwnJzQCdqxtx5zXYCRNM,11458
7
- glide/async_commands/batch.py,sha256=MMNXtdY7cOCXuFCkHoliZIejZZJb0ApJWxJuXXinGsU,230704
7
+ glide/async_commands/batch.py,sha256=DOCXFbIZWNuBzIi_6P1Qt3HvRZVblBwoUxr_4imE8A4,230468
8
8
  glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
9
- glide/async_commands/core.py,sha256=ZYjUwpf7DJBlBC7KPHSiRjbA6lbWcBbY8xEGxkJXRno,316713
9
+ glide/async_commands/core.py,sha256=NS8jfMonU46KGPUZV5csKAueajwZlhs5FJI-aCSlLBY,316484
10
10
  glide/async_commands/server_modules/glide_json.py,sha256=cf93MG6GioA7hFLPn1vNMjipoUt6G-qJ2oK9E91KRkw,63120
11
11
  glide/async_commands/server_modules/json_batch.py,sha256=XBySnoRJnm1ABPYBnajHmPK6C-Wr9uk3gjNg2s7wVm8,36631
12
12
  glide/async_commands/server_modules/ft.py,sha256=xOV22Znj9z9clKK5XZUL8UhthSbiA1F2H11EOKtMJCg,16840
@@ -22,7 +22,7 @@ glide/async_commands/command_args.py,sha256=55vpSxeQr8wFU7olkFTEecl66wPk1g6vWxVY
22
22
  glide/async_commands/bitmap.py,sha256=ZHGLcKBP7RADtANqIR7PWdIW_gfDBFgpkIsQ-T4QFBQ,10125
23
23
  glide/__init__.py,sha256=nCbDQf344sIuXbaCsivrjBjkQ3kaP_ArT3IQnzTUFx8,7372
24
24
  glide/glide.pyi,sha256=K2CeC-F0E8vlr-rbko-E0PofzFoWl4da-xUQSuvuFDo,1105
25
- glide/glide_client.py,sha256=E6bS-Yu9XNKERD9QjWm4ukbdjMPD17KtWPXLddhBvXQ,31880
25
+ glide/glide_client.py,sha256=n9Vp7vjqRjHNK24YqHU35YkeDUriberJC5RPPS4_EeI,31870
26
26
  glide/logger.py,sha256=IhlrmIDF4IufCOszQu2WnMZeyBfH21kVr8KwDlBqDP0,3800
27
27
  glide/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  glide/exceptions.py,sha256=ZI_LwIduoR-1jHm9-6jWZkx90AqCJLRtjbv4iESIEEA,1194
@@ -33,5 +33,5 @@ glide/protobuf/connection_request_pb2.py,sha256=rqnCM3pR4X74eEJzBFhsQ27SKxdtYI5v
33
33
  glide/protobuf/command_request_pb2.pyi,sha256=DYnPAmwzyygCdCpW1R1CDGZB_O6zQRJp51K8Wr4CpFc,52470
34
34
  glide/protobuf/response_pb2.py,sha256=r3_OFhf8HZvEmBSigSyBzG7S7kWl7CCgVMog4HgMFXM,2025
35
35
  glide/routes.py,sha256=ZcLV_HrMzAYxHJW7uk905gdhOZbchBDSHlG1LVF7BJ4,4439
36
- glide/glide.cpython-311-darwin.so,sha256=Cd2rgHCB5THPLcwhT9Ku8q_j-3ckl8zeAkTTK-jKpZU,6625376
37
- valkey_glide-2.0.0rc6.dist-info/RECORD,,
36
+ glide/glide.cpython-311-darwin.so,sha256=Awk81cX8i0nWX9qDZGLedkRfA_Iu3nvOYdWhPcliJdo,6642208
37
+ valkey_glide-2.0.0rc7.dist-info/RECORD,,