valkey-glide 1.3.5__cp39-cp39-macosx_11_0_arm64.whl → 2.2.2__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.
Files changed (47) hide show
  1. glide/__init__.py +165 -107
  2. glide/async_commands/cluster_commands.py +318 -136
  3. glide/async_commands/core.py +1770 -992
  4. glide/async_commands/{server_modules/ft.py → ft.py} +91 -21
  5. glide/async_commands/{server_modules/glide_json.py → glide_json.py} +148 -134
  6. glide/async_commands/standalone_commands.py +203 -137
  7. glide/glide.cpython-39-darwin.so +0 -0
  8. glide/glide.pyi +26 -1
  9. glide/glide_client.py +352 -135
  10. glide/logger.py +34 -22
  11. glide/opentelemetry.py +185 -0
  12. glide_shared/__init__.py +330 -0
  13. glide_shared/commands/__init__.py +0 -0
  14. glide/async_commands/transaction.py → glide_shared/commands/batch.py +1839 -1017
  15. glide_shared/commands/batch_options.py +261 -0
  16. {glide/async_commands → glide_shared/commands}/bitmap.py +94 -85
  17. {glide/async_commands → glide_shared/commands}/command_args.py +7 -6
  18. glide_shared/commands/core_options.py +407 -0
  19. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_aggregate_options.py +18 -11
  20. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_create_options.py +27 -13
  21. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_profile_options.py +16 -11
  22. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_search_options.py +16 -8
  23. {glide/async_commands → glide_shared/commands}/server_modules/json_batch.py +160 -130
  24. glide_shared/commands/server_modules/json_options.py +93 -0
  25. {glide/async_commands → glide_shared/commands}/sorted_set.py +41 -31
  26. {glide/async_commands → glide_shared/commands}/stream.py +95 -88
  27. glide_shared/config.py +975 -0
  28. {glide → glide_shared}/constants.py +11 -7
  29. {glide → glide_shared}/exceptions.py +27 -1
  30. glide_shared/protobuf/command_request_pb2.py +56 -0
  31. glide_shared/protobuf/connection_request_pb2.py +56 -0
  32. {glide → glide_shared}/protobuf/response_pb2.py +6 -6
  33. {glide → glide_shared}/protobuf_codec.py +7 -6
  34. glide_shared/routes.py +161 -0
  35. valkey_glide-2.2.2.dist-info/METADATA +211 -0
  36. valkey_glide-2.2.2.dist-info/RECORD +40 -0
  37. glide/config.py +0 -590
  38. glide/protobuf/command_request_pb2.py +0 -54
  39. glide/protobuf/command_request_pb2.pyi +0 -1164
  40. glide/protobuf/connection_request_pb2.py +0 -52
  41. glide/protobuf/connection_request_pb2.pyi +0 -292
  42. glide/protobuf/response_pb2.pyi +0 -101
  43. glide/routes.py +0 -114
  44. valkey_glide-1.3.5.dist-info/METADATA +0 -125
  45. valkey_glide-1.3.5.dist-info/RECORD +0 -37
  46. {glide/async_commands → glide_shared/commands}/server_modules/ft_options/ft_constants.py +0 -0
  47. {valkey_glide-1.3.5.dist-info → valkey_glide-2.2.2.dist-info}/WHEEL +0 -0
@@ -1,125 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: valkey-glide
3
- Version: 1.3.5
4
- Classifier: Topic :: Database
5
- Classifier: Topic :: Utilities
6
- Classifier: License :: OSI Approved :: Apache Software License
7
- Classifier: Intended Audience :: Developers
8
- Classifier: Topic :: Software Development
9
- Classifier: Programming Language :: Rust
10
- Classifier: Programming Language :: Python :: Implementation :: CPython
11
- Classifier: Programming Language :: Python :: Implementation :: PyPy
12
- Requires-Dist: async-timeout>=4.0.2; python_version < '3.11'
13
- Requires-Dist: typing-extensions>=4.8.0; python_version < '3.11'
14
- Requires-Dist: protobuf>=3.20
15
- Summary: An open source Valkey client library that supports Valkey and Redis open source 6.2, 7.0, 7.2 and 8.0.
16
- Author: Valkey GLIDE Maintainers
17
- License: Apache-2.0
18
- Requires-Python: >=3.9
19
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
-
21
- # Valkey GLIDE
22
-
23
- Valkey General Language Independent Driver for the Enterprise (GLIDE), is an open-source Valkey client library. Valkey GLIDE is one of the official client libraries for Valkey, and it supports all Valkey commands. Valkey GLIDE supports Valkey 7.2 and above, and Redis open-source 6.2, 7.0 and 7.2. Application programmers use Valkey GLIDE to safely and reliably connect their applications to Valkey- and Redis OSS- compatible services. Valkey GLIDE is designed for reliability, optimized performance, and high-availability, for Valkey and Redis OSS based applications. It is sponsored and supported by AWS, and is pre-configured with best practices learned from over a decade of operating Redis OSS-compatible services used by hundreds of thousands of customers. To help ensure consistency in application development and operations, Valkey GLIDE is implemented using a core driver framework, written in Rust, with language specific extensions. This design ensures consistency in features across languages and reduces overall complexity.
24
-
25
- ## Supported Engine Versions
26
-
27
- Refer to the [Supported Engine Versions table](https://github.com/valkey-io/valkey-glide/blob/main/README.md#supported-engine-versions) for details.
28
-
29
- # Getting Started - Python Wrapper
30
-
31
- ## System Requirements
32
-
33
- The release of Valkey GLIDE was tested on the following platforms:
34
-
35
- Linux:
36
-
37
- - Ubuntu 22.04.1 (x86_64 and aarch64)
38
- - Amazon Linux 2023 (AL2023) (x86_64)
39
-
40
- macOS:
41
-
42
- - macOS (Apple silicon/aarch_64 and Intel/x86_64)
43
- Testing are being done on macOS arm64 platforms.
44
- Please note that the package is not tested on macOS intel platforms, only minimal testing is done during CD.
45
-
46
- ## Python Supported Versions
47
-
48
- | Python Version |
49
- |----------------|
50
- | 3.9 |
51
- | 3.10 |
52
- | 3.11 |
53
- | 3.12 |
54
- | 3.13 |
55
-
56
- ## Installation and Setup
57
-
58
- ### Installing via Package Manager (pip)
59
-
60
- To install Valkey GLIDE using `pip`, follow these steps:
61
-
62
- 1. Open your terminal.
63
- 2. Execute the command below:
64
- ```bash
65
- $ pip install valkey-glide
66
- ```
67
- 3. After installation, confirm the client is accessible by running:
68
- ```bash
69
- $ python3
70
- >>> import glide
71
- ```
72
-
73
- ## Basic Examples
74
-
75
- #### Cluster Mode:
76
-
77
- ```python:
78
- >>> import asyncio
79
- >>> from glide import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
80
- >>> async def test_cluster_client():
81
- ... addresses = [NodeAddress("address.example.com", 6379)]
82
- ... config = GlideClusterClientConfiguration(addresses)
83
- ... client = await GlideClusterClient.create(config)
84
- ... set_result = await client.set("foo", "bar")
85
- ... print(f"Set response is {set_result}")
86
- ... get_result = await client.get("foo")
87
- ... print(f"Get response is {get_result}")
88
- ...
89
- >>> asyncio.run(test_cluster_client())
90
- Set response is OK
91
- Get response is bar
92
- ```
93
-
94
- #### Standalone Mode:
95
-
96
- ```python:
97
- >>> import asyncio
98
- >>> from glide import GlideClientConfiguration, NodeAddress, GlideClient
99
- >>> async def test_standalone_client():
100
- ... addresses = [
101
- ... NodeAddress("server_primary.example.com", 6379),
102
- ... NodeAddress("server_replica.example.com", 6379)
103
- ... ]
104
- ... config = GlideClientConfiguration(addresses)
105
- ... client = await GlideClient.create(config)
106
- ... set_result = await client.set("foo", "bar")
107
- ... print(f"Set response is {set_result}")
108
- ... get_result = await client.get("foo")
109
- ... print(f"Get response is {get_result}")
110
- ...
111
- >>> asyncio.run(test_standalone_client())
112
- Set response is OK
113
- Get response is bar
114
- ```
115
-
116
- For complete examples with error handling, please refer to the [cluster example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/cluster_example.py) and the [standalone example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/standalone_example.py).
117
-
118
- ## Documentation
119
-
120
- Visit our [wiki](https://github.com/valkey-io/valkey-glide/wiki/Python-wrapper) for examples and further details on TLS, Read strategy, Timeouts and various other configurations.
121
-
122
- ### Building & Testing
123
-
124
- Development instructions for local building & testing the package are in the [DEVELOPER.md](https://github.com/valkey-io/valkey-glide/blob/main/python/DEVELOPER.md#build-from-source) file.
125
-
@@ -1,37 +0,0 @@
1
- valkey_glide-1.3.5.dist-info/METADATA,sha256=qyLsphqAtRf6Y93JnP9RPOcCi7slKawgNy-LlmAWZys,5116
2
- valkey_glide-1.3.5.dist-info/WHEEL,sha256=SjFvs0za84r93yXv_seM90QIJLVMin7Qs7nbzy5Blh4,104
3
- glide/config.py,sha256=5kpn5OKkuzNHaRe7kpmLxlJNZ3D8V_H2t3k4DnVqAEQ,27648
4
- glide/protobuf_codec.py,sha256=3tQnc3L-y1VoNLggN6FyYFR4POkgZLfu-xYAKE2dN8M,3623
5
- glide/constants.py,sha256=B_mMzUS48ulnpQhv4h_NecRNTTENl6CuEl6OuJURYEI,4346
6
- glide/async_commands/sorted_set.py,sha256=swS10R7AwEY8cNI3XlxUkfvlV_R9kx9fvN2encofmUg,11384
7
- glide/async_commands/transaction.py,sha256=f3U5e3qtppXvsXLdIlwYCZFckyxtsVowQlCZjjBWHxE,222911
8
- glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
9
- glide/async_commands/core.py,sha256=9M09GMvxCIcyN9c93_qUwG_gFi6O-bn5J9Cro-74Fec,308681
10
- glide/async_commands/server_modules/glide_json.py,sha256=JAoPqjtJH0XDWCKVigHwwghMJGYTTSYKTLT80W89WWw,61278
11
- glide/async_commands/server_modules/json_batch.py,sha256=wBGOplaOp9ALJsAUJkTlrTmvO2ZWu044_4LKJqQd7Cg,36786
12
- glide/async_commands/server_modules/ft.py,sha256=ysNIKNSU69j2pbl-_lWWxznklId2_4G88_bX4UyeUiQ,15507
13
- glide/async_commands/server_modules/ft_options/ft_search_options.py,sha256=PN1m9gJ1V6CZrFLb3Espoa7THr6puk1J8H-lH_yEUeI,4759
14
- glide/async_commands/server_modules/ft_options/ft_aggregate_options.py,sha256=No9LxyQ25-x7943guocs0vrwnzx-ruq8Oi7GWAlezww,9849
15
- glide/async_commands/server_modules/ft_options/ft_create_options.py,sha256=9VCsI47tyyG5ai4Gy1mOl3HCha8AMK7mI1GMGCfJkeM,13529
16
- glide/async_commands/server_modules/ft_options/ft_profile_options.py,sha256=s4XSiKpjFjBbtC5oCf6ddNYImf6ag7KvFcgOk2dNbYs,4185
17
- glide/async_commands/server_modules/ft_options/ft_constants.py,sha256=r9uLAExg2qThjwOBC8LxqXBITF0fwa5xfnD7EXnyPrw,1704
18
- glide/async_commands/stream.py,sha256=U7n2HPmHpcK1mmbI68szphZqjAoGPJTLOZscgw0WEK0,15791
19
- glide/async_commands/standalone_commands.py,sha256=RrumL-O2rt6yPYS9QtftY1rebAcqxoshLsQvf_8GCMo,34742
20
- glide/async_commands/cluster_commands.py,sha256=JjYuJbIkipQGllzwSJGvWzM88frFQenk1LTFY2qJueI,54315
21
- glide/async_commands/command_args.py,sha256=Lz-Rl9pXtEcQ4hhcRns23x0dVPQ0shpqQw1a0vxFGAI,2561
22
- glide/async_commands/bitmap.py,sha256=eYKfA1Xuikr7nXxCVGRsZ9RFKJOU_QN4nLXXTRtBSgU,10325
23
- glide/__init__.py,sha256=2YpdncnGRo9mHjXVPBvLn2MuvllaMp7-HemVgQYmbA0,7328
24
- glide/glide.pyi,sha256=K2CeC-F0E8vlr-rbko-E0PofzFoWl4da-xUQSuvuFDo,1105
25
- glide/glide_client.py,sha256=g_HK93WjNYTJn1H_q1T5t6Cvym2Av5z2aCdYLXQsWLA,24356
26
- glide/logger.py,sha256=zP_ENonH15lEvXlAYo1yg0QoJmHyZgEkI8H2-kO_QuY,3804
27
- glide/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- glide/exceptions.py,sha256=ZI_LwIduoR-1jHm9-6jWZkx90AqCJLRtjbv4iESIEEA,1194
29
- glide/protobuf/response_pb2.pyi,sha256=1US9ekAXkanJnzwArqHzj4NezV8TJl36QADmiAFqlKg,4076
30
- glide/protobuf/connection_request_pb2.pyi,sha256=uwyWm81mAjtKnGGJFUoJVGr9_ou0xAxYd_ERgM7OXTw,12391
31
- glide/protobuf/command_request_pb2.py,sha256=7BYmHeBKF76Yk911Nmeq5jwEGzjiOaHFnka08L6DOkI,18481
32
- glide/protobuf/connection_request_pb2.py,sha256=LcB4WVCmhQEJ7n7Rx6VZyr6dIAh3zdF0PuYga6EeQBA,5221
33
- glide/protobuf/command_request_pb2.pyi,sha256=QnRKhSy1jPbPBtHJsdbQyFWYGQkNZ8CVyG1IsZBYPBk,49860
34
- glide/protobuf/response_pb2.py,sha256=r3_OFhf8HZvEmBSigSyBzG7S7kWl7CCgVMog4HgMFXM,2025
35
- glide/routes.py,sha256=riaUkzI36tq4Lhsn11H7uSBdx7HfSvdT9YXxNabMNKk,3699
36
- glide/glide.cpython-39-darwin.so,sha256=7KmbcdV8uFMHJIfxLwNBq-yGe2_B2e4oyONxEjXcR0E,4104256
37
- valkey_glide-1.3.5.dist-info/RECORD,,