valkey-glide 1.3.4rc1__cp313-cp313-macosx_11_0_arm64.whl → 2.0.0rc6__cp313-cp313-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.
- glide/__init__.py +11 -7
- glide/async_commands/{transaction.py → batch.py} +1413 -987
- glide/async_commands/bitmap.py +94 -85
- glide/async_commands/cluster_commands.py +308 -123
- glide/async_commands/command_args.py +7 -6
- glide/async_commands/core.py +1304 -714
- glide/async_commands/server_modules/ft.py +83 -14
- glide/async_commands/server_modules/ft_options/ft_aggregate_options.py +15 -8
- glide/async_commands/server_modules/ft_options/ft_create_options.py +23 -11
- glide/async_commands/server_modules/ft_options/ft_profile_options.py +12 -7
- glide/async_commands/server_modules/ft_options/ft_search_options.py +12 -6
- glide/async_commands/server_modules/glide_json.py +134 -43
- glide/async_commands/server_modules/json_batch.py +157 -127
- glide/async_commands/sorted_set.py +39 -29
- glide/async_commands/standalone_commands.py +199 -95
- glide/async_commands/stream.py +94 -87
- glide/config.py +165 -105
- glide/constants.py +8 -4
- glide/glide.cpython-313-darwin.so +0 -0
- glide/glide_client.py +273 -94
- glide/logger.py +1 -1
- glide/protobuf/command_request_pb2.py +15 -15
- glide/protobuf/command_request_pb2.pyi +69 -46
- glide/protobuf/connection_request_pb2.py +15 -13
- glide/protobuf/connection_request_pb2.pyi +57 -29
- glide/protobuf/response_pb2.pyi +8 -9
- glide/protobuf_codec.py +7 -6
- glide/routes.py +41 -8
- {valkey_glide-1.3.4rc1.dist-info → valkey_glide-2.0.0rc6.dist-info}/METADATA +29 -8
- valkey_glide-2.0.0rc6.dist-info/RECORD +37 -0
- valkey_glide-1.3.4rc1.dist-info/RECORD +0 -37
- {valkey_glide-1.3.4rc1.dist-info → valkey_glide-2.0.0rc6.dist-info}/WHEEL +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
2
2
|
|
|
3
3
|
from enum import Enum
|
|
4
|
-
from typing import List, Optional, Union
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
class Limit:
|
|
@@ -12,7 +11,7 @@ class Limit:
|
|
|
12
11
|
similar to the `LIMIT` clause in SQL (e.g., `SELECT LIMIT offset, count`).
|
|
13
12
|
|
|
14
13
|
This class can be utilized in multiple commands that support limit options,
|
|
15
|
-
such as [ZRANGE](https://valkey.io/commands/zrange), [SORT](https://valkey.io/commands/sort/)
|
|
14
|
+
such as [ZRANGE](https://valkey.io/commands/zrange), [SORT](https://valkey.io/commands/sort/) and others.
|
|
16
15
|
|
|
17
16
|
Args:
|
|
18
17
|
offset (int): The starting position of the range, zero based.
|
|
@@ -34,9 +33,11 @@ class OrderBy(Enum):
|
|
|
34
33
|
Enumeration representing sorting order options.
|
|
35
34
|
|
|
36
35
|
This enum is used for the following commands:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
|
|
37
|
+
- `SORT`: General sorting in ascending or descending order.
|
|
38
|
+
- `GEOSEARCH`: Sorting items based on their proximity to a center point.
|
|
39
|
+
- `FT.AGGREGATE`: Used in the SortBy clause of the FT.AGGREGATE command.
|
|
40
|
+
|
|
40
41
|
"""
|
|
41
42
|
|
|
42
43
|
ASC = "ASC"
|
|
@@ -93,7 +94,7 @@ class ObjectType(Enum):
|
|
|
93
94
|
|
|
94
95
|
HASH = "Hash"
|
|
95
96
|
"""
|
|
96
|
-
Represents a hash data type.
|
|
97
|
+
Represents a hash data type.
|
|
97
98
|
"""
|
|
98
99
|
|
|
99
100
|
STREAM = "Stream"
|