valkey-glide 2.1.0rc3__tar.gz → 2.1.0rc5__tar.gz
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.
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/Cargo.lock +47 -56
- valkey_glide-2.1.0rc5/PKG-INFO +210 -0
- valkey_glide-2.1.0rc5/README.md +189 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/mod.rs +1 -1
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/test_cluster_client.rs +102 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/test_standalone_client.rs +0 -8
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/utilities/mod.rs +82 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster.rs +1 -1
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_client.rs +12 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_routing.rs +3 -2
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/pyproject.toml +2 -1
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/standalone_commands.py +22 -0
- valkey_glide-2.1.0rc3/PKG-INFO +0 -18
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/.cargo/config.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/Cargo.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/THIRD_PARTY_LICENSES_PYTHON_ASYNC +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/.cargo/config.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/.ort.yml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/Cargo.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/README.md +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/THIRD_PARTY_LICENSES_RUST +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/benches/connections_benchmark.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/benches/memory_benchmark.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/benches/rotating_buffer_benchmark.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/build.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/reconnecting_connection.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/standalone_client.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/types.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/value_conversion.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/cluster_scan_container.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/errors.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/lib.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/protobuf/command_request.proto +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/protobuf/connection_request.proto +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/protobuf/response.proto +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/request_type.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/rotating_buffer.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/scripts_container.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/socket_listener.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/test_client.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/test_socket_listener.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/utilities/cluster.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/tests/utilities/mocks.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/logger_core/Cargo.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/logger_core/src/lib.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/logger_core/tests/test_logger.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/CHANGELOG.md +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/Cargo.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/LICENSE +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/benches/bench_basic.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/benches/bench_cluster.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/benches/bench_cluster_async.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/examples/async-await.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/examples/async-multiplexed.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/examples/async-pub-sub.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/examples/async-scan.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/examples/basic.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/release.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/connection.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/connection_manager.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/mod.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/multiplexed_connection.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/runtime.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/aio/tokio.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/client.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_async/LICENSE +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_async/connections_container.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_async/connections_logic.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_async/mod.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_async/pipeline_routing.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_pipeline.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_slotmap.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cluster_topology.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/cmd.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/commands/cluster_scan.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/commands/macros.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/commands/mod.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/connection.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/lib.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/macros.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/parser.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/pipeline.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/push_manager.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/retry_strategies.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/sentinel.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/tls.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/src/types.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/auth.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/parser.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/support/cluster.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/support/mock_cluster.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/support/mod.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/support/sentinel.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/support/util.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_async.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_async_cluster_connections_logic.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_basic.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_cluster.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_cluster_async.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_cluster_pipeline.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_cluster_scan.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_sentinel.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/redis/tests/test_types.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/telemetrylib/Cargo.toml +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/telemetrylib/src/lib.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/telemetrylib/src/metrics_exporter_file.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/telemetrylib/src/open_telemetry.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/telemetrylib/src/span_exporter_file.rs +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/__init__.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/__init__.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/cluster_commands.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/core.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/ft.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/async_commands/glide_json.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/glide.pyi +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/glide_client.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/logger.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/python/glide/opentelemetry.py +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/requirements.txt +0 -0
- {valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/src/lib.rs +0 -0
|
@@ -94,9 +94,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
|
94
94
|
|
|
95
95
|
[[package]]
|
|
96
96
|
name = "aws-lc-rs"
|
|
97
|
-
version = "1.
|
|
97
|
+
version = "1.14.0"
|
|
98
98
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
-
checksum = "
|
|
99
|
+
checksum = "94b8ff6c09cd57b16da53641caa860168b88c172a5ee163b0288d3d6eea12786"
|
|
100
100
|
dependencies = [
|
|
101
101
|
"aws-lc-sys",
|
|
102
102
|
"zeroize",
|
|
@@ -104,9 +104,9 @@ dependencies = [
|
|
|
104
104
|
|
|
105
105
|
[[package]]
|
|
106
106
|
name = "aws-lc-sys"
|
|
107
|
-
version = "0.
|
|
107
|
+
version = "0.31.0"
|
|
108
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
-
checksum = "
|
|
109
|
+
checksum = "0e44d16778acaf6a9ec9899b92cebd65580b83f685446bf2e1f5d3d732f99dcd"
|
|
110
110
|
dependencies = [
|
|
111
111
|
"bindgen",
|
|
112
112
|
"cc",
|
|
@@ -185,16 +185,14 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
|
185
185
|
|
|
186
186
|
[[package]]
|
|
187
187
|
name = "bindgen"
|
|
188
|
-
version = "0.
|
|
188
|
+
version = "0.72.1"
|
|
189
189
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
190
|
-
checksum = "
|
|
190
|
+
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
|
|
191
191
|
dependencies = [
|
|
192
192
|
"bitflags",
|
|
193
193
|
"cexpr",
|
|
194
194
|
"clang-sys",
|
|
195
|
-
"itertools 0.
|
|
196
|
-
"lazy_static",
|
|
197
|
-
"lazycell",
|
|
195
|
+
"itertools 0.13.0",
|
|
198
196
|
"log",
|
|
199
197
|
"prettyplease",
|
|
200
198
|
"proc-macro2",
|
|
@@ -203,7 +201,6 @@ dependencies = [
|
|
|
203
201
|
"rustc-hash",
|
|
204
202
|
"shlex",
|
|
205
203
|
"syn",
|
|
206
|
-
"which",
|
|
207
204
|
]
|
|
208
205
|
|
|
209
206
|
[[package]]
|
|
@@ -445,12 +442,12 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
|
445
442
|
|
|
446
443
|
[[package]]
|
|
447
444
|
name = "errno"
|
|
448
|
-
version = "0.3.
|
|
445
|
+
version = "0.3.14"
|
|
449
446
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
-
checksum = "
|
|
447
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
451
448
|
dependencies = [
|
|
452
449
|
"libc",
|
|
453
|
-
"windows-sys 0.
|
|
450
|
+
"windows-sys 0.61.0",
|
|
454
451
|
]
|
|
455
452
|
|
|
456
453
|
[[package]]
|
|
@@ -626,7 +623,7 @@ dependencies = [
|
|
|
626
623
|
"cfg-if",
|
|
627
624
|
"libc",
|
|
628
625
|
"r-efi",
|
|
629
|
-
"wasi 0.14.
|
|
626
|
+
"wasi 0.14.5+wasi-0.2.4",
|
|
630
627
|
]
|
|
631
628
|
|
|
632
629
|
[[package]]
|
|
@@ -683,7 +680,7 @@ dependencies = [
|
|
|
683
680
|
"futures-core",
|
|
684
681
|
"futures-sink",
|
|
685
682
|
"http",
|
|
686
|
-
"indexmap 2.11.
|
|
683
|
+
"indexmap 2.11.1",
|
|
687
684
|
"slab",
|
|
688
685
|
"tokio",
|
|
689
686
|
"tokio-util",
|
|
@@ -978,9 +975,9 @@ dependencies = [
|
|
|
978
975
|
|
|
979
976
|
[[package]]
|
|
980
977
|
name = "indexmap"
|
|
981
|
-
version = "2.11.
|
|
978
|
+
version = "2.11.1"
|
|
982
979
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
983
|
-
checksum = "
|
|
980
|
+
checksum = "206a8042aec68fa4a62e8d3f7aa4ceb508177d9324faf261e1959e495b7a1921"
|
|
984
981
|
dependencies = [
|
|
985
982
|
"equivalent",
|
|
986
983
|
"hashbrown 0.15.5",
|
|
@@ -1027,9 +1024,9 @@ dependencies = [
|
|
|
1027
1024
|
|
|
1028
1025
|
[[package]]
|
|
1029
1026
|
name = "itertools"
|
|
1030
|
-
version = "0.
|
|
1027
|
+
version = "0.13.0"
|
|
1031
1028
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1032
|
-
checksum = "
|
|
1029
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
1033
1030
|
dependencies = [
|
|
1034
1031
|
"either",
|
|
1035
1032
|
]
|
|
@@ -1097,12 +1094,6 @@ version = "1.5.0"
|
|
|
1097
1094
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1098
1095
|
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
1099
1096
|
|
|
1100
|
-
[[package]]
|
|
1101
|
-
name = "lazycell"
|
|
1102
|
-
version = "1.3.0"
|
|
1103
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1104
|
-
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
1105
|
-
|
|
1106
1097
|
[[package]]
|
|
1107
1098
|
name = "libc"
|
|
1108
1099
|
version = "0.2.175"
|
|
@@ -1137,9 +1128,9 @@ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
|
|
|
1137
1128
|
|
|
1138
1129
|
[[package]]
|
|
1139
1130
|
name = "linux-raw-sys"
|
|
1140
|
-
version = "0.
|
|
1131
|
+
version = "0.11.0"
|
|
1141
1132
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1142
|
-
checksum = "
|
|
1133
|
+
checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
|
|
1143
1134
|
|
|
1144
1135
|
[[package]]
|
|
1145
1136
|
name = "litemap"
|
|
@@ -1583,7 +1574,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1583
1574
|
checksum = "b4aeaa1f2460f1d348eeaeed86aea999ce98c1bded6f089ff8514c9d9dbdc973"
|
|
1584
1575
|
dependencies = [
|
|
1585
1576
|
"anyhow",
|
|
1586
|
-
"indexmap 2.11.
|
|
1577
|
+
"indexmap 2.11.1",
|
|
1587
1578
|
"log",
|
|
1588
1579
|
"protobuf",
|
|
1589
1580
|
"protobuf-support",
|
|
@@ -1880,9 +1871,9 @@ checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
|
|
|
1880
1871
|
|
|
1881
1872
|
[[package]]
|
|
1882
1873
|
name = "rustc-hash"
|
|
1883
|
-
version = "1.1
|
|
1874
|
+
version = "2.1.1"
|
|
1884
1875
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1885
|
-
checksum = "
|
|
1876
|
+
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
|
|
1886
1877
|
|
|
1887
1878
|
[[package]]
|
|
1888
1879
|
name = "rustix"
|
|
@@ -1899,15 +1890,15 @@ dependencies = [
|
|
|
1899
1890
|
|
|
1900
1891
|
[[package]]
|
|
1901
1892
|
name = "rustix"
|
|
1902
|
-
version = "1.
|
|
1893
|
+
version = "1.1.2"
|
|
1903
1894
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1904
|
-
checksum = "
|
|
1895
|
+
checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
|
|
1905
1896
|
dependencies = [
|
|
1906
1897
|
"bitflags",
|
|
1907
1898
|
"errno",
|
|
1908
1899
|
"libc",
|
|
1909
|
-
"linux-raw-sys 0.
|
|
1910
|
-
"windows-sys 0.
|
|
1900
|
+
"linux-raw-sys 0.11.0",
|
|
1901
|
+
"windows-sys 0.61.0",
|
|
1911
1902
|
]
|
|
1912
1903
|
|
|
1913
1904
|
[[package]]
|
|
@@ -2017,11 +2008,11 @@ dependencies = [
|
|
|
2017
2008
|
|
|
2018
2009
|
[[package]]
|
|
2019
2010
|
name = "schannel"
|
|
2020
|
-
version = "0.1.
|
|
2011
|
+
version = "0.1.28"
|
|
2021
2012
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2022
|
-
checksum = "
|
|
2013
|
+
checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1"
|
|
2023
2014
|
dependencies = [
|
|
2024
|
-
"windows-sys 0.
|
|
2015
|
+
"windows-sys 0.61.0",
|
|
2025
2016
|
]
|
|
2026
2017
|
|
|
2027
2018
|
[[package]]
|
|
@@ -2213,9 +2204,9 @@ dependencies = [
|
|
|
2213
2204
|
|
|
2214
2205
|
[[package]]
|
|
2215
2206
|
name = "target-lexicon"
|
|
2216
|
-
version = "0.13.
|
|
2207
|
+
version = "0.13.3"
|
|
2217
2208
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2218
|
-
checksum = "
|
|
2209
|
+
checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
|
|
2219
2210
|
|
|
2220
2211
|
[[package]]
|
|
2221
2212
|
name = "telemetrylib"
|
|
@@ -2239,15 +2230,15 @@ dependencies = [
|
|
|
2239
2230
|
|
|
2240
2231
|
[[package]]
|
|
2241
2232
|
name = "tempfile"
|
|
2242
|
-
version = "3.
|
|
2233
|
+
version = "3.22.0"
|
|
2243
2234
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2244
|
-
checksum = "
|
|
2235
|
+
checksum = "84fa4d11fadde498443cca10fd3ac23c951f0dc59e080e9f4b93d4df4e4eea53"
|
|
2245
2236
|
dependencies = [
|
|
2246
2237
|
"fastrand",
|
|
2247
2238
|
"getrandom 0.3.3",
|
|
2248
2239
|
"once_cell",
|
|
2249
|
-
"rustix 1.
|
|
2250
|
-
"windows-sys 0.
|
|
2240
|
+
"rustix 1.1.2",
|
|
2241
|
+
"windows-sys 0.61.0",
|
|
2251
2242
|
]
|
|
2252
2243
|
|
|
2253
2244
|
[[package]]
|
|
@@ -2586,9 +2577,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
|
|
2586
2577
|
|
|
2587
2578
|
[[package]]
|
|
2588
2579
|
name = "unicode-ident"
|
|
2589
|
-
version = "1.0.
|
|
2580
|
+
version = "1.0.19"
|
|
2590
2581
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2591
|
-
checksum = "
|
|
2582
|
+
checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
|
|
2592
2583
|
|
|
2593
2584
|
[[package]]
|
|
2594
2585
|
name = "unindent"
|
|
@@ -2686,9 +2677,18 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
|
2686
2677
|
|
|
2687
2678
|
[[package]]
|
|
2688
2679
|
name = "wasi"
|
|
2689
|
-
version = "0.14.
|
|
2680
|
+
version = "0.14.5+wasi-0.2.4"
|
|
2690
2681
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2691
|
-
checksum = "
|
|
2682
|
+
checksum = "a4494f6290a82f5fe584817a676a34b9d6763e8d9d18204009fb31dceca98fd4"
|
|
2683
|
+
dependencies = [
|
|
2684
|
+
"wasip2",
|
|
2685
|
+
]
|
|
2686
|
+
|
|
2687
|
+
[[package]]
|
|
2688
|
+
name = "wasip2"
|
|
2689
|
+
version = "1.0.0+wasi-0.2.4"
|
|
2690
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2691
|
+
checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24"
|
|
2692
2692
|
dependencies = [
|
|
2693
2693
|
"wit-bindgen",
|
|
2694
2694
|
]
|
|
@@ -2897,15 +2897,6 @@ dependencies = [
|
|
|
2897
2897
|
"windows-targets 0.52.6",
|
|
2898
2898
|
]
|
|
2899
2899
|
|
|
2900
|
-
[[package]]
|
|
2901
|
-
name = "windows-sys"
|
|
2902
|
-
version = "0.60.2"
|
|
2903
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2904
|
-
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
|
|
2905
|
-
dependencies = [
|
|
2906
|
-
"windows-targets 0.53.3",
|
|
2907
|
-
]
|
|
2908
|
-
|
|
2909
2900
|
[[package]]
|
|
2910
2901
|
name = "windows-sys"
|
|
2911
2902
|
version = "0.61.0"
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: valkey-glide
|
|
3
|
+
Version: 2.1.0rc5
|
|
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: anyio>=4.9.0
|
|
13
|
+
Requires-Dist: protobuf>=6.20
|
|
14
|
+
Requires-Dist: typing-extensions>=4.8.0; python_version < '3.11'
|
|
15
|
+
Summary: Valkey GLIDE Async client. Supports Valkey and Redis OSS.
|
|
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
|
+
# Welcome to Valkey GLIDE!
|
|
22
|
+
|
|
23
|
+
Valkey General Language Independent Driver for the Enterprise (GLIDE) is the official open-source Valkey client library, proudly part of the Valkey organization. Our mission is to make your experience with Valkey and Redis OSS seamless and enjoyable. Whether you're a seasoned developer or just starting out, Valkey GLIDE is here to support you every step of the way.
|
|
24
|
+
|
|
25
|
+
# Why Choose Valkey GLIDE?
|
|
26
|
+
|
|
27
|
+
- **Community and Open Source**: Join our vibrant community and contribute to the project. We are always here to respond, and the client is for the community.
|
|
28
|
+
- **Reliability**: Built with best practices learned from over a decade of operating Redis OSS-compatible services.
|
|
29
|
+
- **Performance**: Optimized for high performance and low latency.
|
|
30
|
+
- **High Availability**: Designed to ensure your applications are always up and running.
|
|
31
|
+
- **Cross-Language Support**: Implemented using a core driver framework written in Rust, with language-specific extensions to ensure consistency and reduce complexity.
|
|
32
|
+
- **Stability and Fault Tolerance**: We brought our years of experience to create a bulletproof client.
|
|
33
|
+
- **Backed and Supported by AWS and GCP**: Ensuring robust support and continuous improvement of the project.
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
See GLIDE's [documentation site](https://valkey.io/valkey-glide/).
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
## Supported Engine Versions
|
|
41
|
+
|
|
42
|
+
Refer to the [Supported Engine Versions table](https://github.com/valkey-io/valkey-glide/blob/main/README.md#supported-engine-versions) for details.
|
|
43
|
+
|
|
44
|
+
# Getting Started - Python Wrapper
|
|
45
|
+
|
|
46
|
+
## System Requirements
|
|
47
|
+
|
|
48
|
+
The release of Valkey GLIDE was tested on the following platforms:
|
|
49
|
+
|
|
50
|
+
Linux:
|
|
51
|
+
|
|
52
|
+
- Ubuntu 20 (x86_64/amd64 and arm64/aarch64)
|
|
53
|
+
- Amazon Linux 2 (AL2) and 2023 (AL2023) (x86_64)
|
|
54
|
+
|
|
55
|
+
**Note: Currently Alpine Linux / MUSL is NOT supported.**
|
|
56
|
+
|
|
57
|
+
macOS:
|
|
58
|
+
|
|
59
|
+
- macOS 14.7 (Apple silicon/aarch_64)
|
|
60
|
+
- macOS 13.7 (x86_64/amd64)
|
|
61
|
+
|
|
62
|
+
## Python Supported Versions
|
|
63
|
+
|
|
64
|
+
| Python Version |
|
|
65
|
+
|----------------|
|
|
66
|
+
| 3.9 |
|
|
67
|
+
| 3.10 |
|
|
68
|
+
| 3.11 |
|
|
69
|
+
| 3.12 |
|
|
70
|
+
| 3.13 |
|
|
71
|
+
|
|
72
|
+
Valkey GLIDE transparently supports both the `asyncio` and `trio` concurrency frameworks.
|
|
73
|
+
|
|
74
|
+
## Installation and Setup
|
|
75
|
+
|
|
76
|
+
### ✅ Async Client
|
|
77
|
+
|
|
78
|
+
To install the async version:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pip install valkey-glide
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Verify installation:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
python3
|
|
88
|
+
>>> import glide
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### ✅ Sync Client
|
|
92
|
+
|
|
93
|
+
To install the sync version:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pip install valkey-glide-sync
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Verify installation:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
python3
|
|
103
|
+
>>> import glide_sync
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Basic Examples
|
|
109
|
+
|
|
110
|
+
### 🔁 Async Client
|
|
111
|
+
|
|
112
|
+
### ✅ Async Cluster Mode
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
import asyncio
|
|
116
|
+
from glide import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
|
|
117
|
+
|
|
118
|
+
async def test_cluster_client():
|
|
119
|
+
addresses = [NodeAddress("address.example.com", 6379)]
|
|
120
|
+
# It is recommended to set a timeout for your specific use case
|
|
121
|
+
config = GlideClusterClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
122
|
+
client = await GlideClusterClient.create(config)
|
|
123
|
+
set_result = await client.set("foo", "bar")
|
|
124
|
+
print(f"Set response is {set_result}")
|
|
125
|
+
get_result = await client.get("foo")
|
|
126
|
+
print(f"Get response is {get_result}")
|
|
127
|
+
|
|
128
|
+
asyncio.run(test_cluster_client())
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### ✅ Async Standalone Mode
|
|
132
|
+
|
|
133
|
+
```python
|
|
134
|
+
import asyncio
|
|
135
|
+
from glide import GlideClientConfiguration, NodeAddress, GlideClient
|
|
136
|
+
|
|
137
|
+
async def test_standalone_client():
|
|
138
|
+
addresses = [
|
|
139
|
+
NodeAddress("server_primary.example.com", 6379),
|
|
140
|
+
NodeAddress("server_replica.example.com", 6379)
|
|
141
|
+
]
|
|
142
|
+
# It is recommended to set a timeout for your specific use case
|
|
143
|
+
config = GlideClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
144
|
+
client = await GlideClient.create(config)
|
|
145
|
+
set_result = await client.set("foo", "bar")
|
|
146
|
+
print(f"Set response is {set_result}")
|
|
147
|
+
get_result = await client.get("foo")
|
|
148
|
+
print(f"Get response is {get_result}")
|
|
149
|
+
|
|
150
|
+
asyncio.run(test_standalone_client())
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### 🔂 Sync Client
|
|
156
|
+
|
|
157
|
+
#### ✅ Sync Cluster Mode
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
from glide_sync import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
|
|
161
|
+
|
|
162
|
+
def test_cluster_client():
|
|
163
|
+
addresses = [NodeAddress("address.example.com", 6379)]
|
|
164
|
+
# It is recommended to set a timeout for your specific use case
|
|
165
|
+
config = GlideClusterClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
166
|
+
client = GlideClusterClient.create(config)
|
|
167
|
+
set_result = client.set("foo", "bar")
|
|
168
|
+
print(f"Set response is {set_result}")
|
|
169
|
+
get_result = client.get("foo")
|
|
170
|
+
print(f"Get response is {get_result}")
|
|
171
|
+
|
|
172
|
+
test_cluster_client()
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
#### ✅ Sync Standalone Mode
|
|
176
|
+
|
|
177
|
+
```python
|
|
178
|
+
from glide_sync import GlideClientConfiguration, NodeAddress, GlideClient
|
|
179
|
+
|
|
180
|
+
def test_standalone_client():
|
|
181
|
+
addresses = [
|
|
182
|
+
NodeAddress("server_primary.example.com", 6379),
|
|
183
|
+
NodeAddress("server_replica.example.com", 6379)
|
|
184
|
+
]
|
|
185
|
+
# It is recommended to set a timeout for your specific use case
|
|
186
|
+
config = GlideClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
187
|
+
client = GlideClient.create(config)
|
|
188
|
+
set_result = client.set("foo", "bar")
|
|
189
|
+
print(f"Set response is {set_result}")
|
|
190
|
+
get_result = client.get("foo")
|
|
191
|
+
print(f"Get response is {get_result}")
|
|
192
|
+
|
|
193
|
+
test_standalone_client()
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
For complete examples with error handling, please refer to:
|
|
199
|
+
- [Async Cluster Example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/cluster_example.py)
|
|
200
|
+
- [Async Standalone Example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/standalone_example.py)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Building & Testing
|
|
204
|
+
|
|
205
|
+
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.
|
|
206
|
+
|
|
207
|
+
## Community and Feedback
|
|
208
|
+
|
|
209
|
+
We encourage you to join our community to support, share feedback, and ask questions. You can approach us for anything on our Valkey Slack: [Join Valkey Slack](https://join.slack.com/t/valkey-oss-developer/shared_invite/zt-2nxs51chx-EB9hu9Qdch3GMfRcztTSkQ).
|
|
210
|
+
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# Welcome to Valkey GLIDE!
|
|
2
|
+
|
|
3
|
+
Valkey General Language Independent Driver for the Enterprise (GLIDE) is the official open-source Valkey client library, proudly part of the Valkey organization. Our mission is to make your experience with Valkey and Redis OSS seamless and enjoyable. Whether you're a seasoned developer or just starting out, Valkey GLIDE is here to support you every step of the way.
|
|
4
|
+
|
|
5
|
+
# Why Choose Valkey GLIDE?
|
|
6
|
+
|
|
7
|
+
- **Community and Open Source**: Join our vibrant community and contribute to the project. We are always here to respond, and the client is for the community.
|
|
8
|
+
- **Reliability**: Built with best practices learned from over a decade of operating Redis OSS-compatible services.
|
|
9
|
+
- **Performance**: Optimized for high performance and low latency.
|
|
10
|
+
- **High Availability**: Designed to ensure your applications are always up and running.
|
|
11
|
+
- **Cross-Language Support**: Implemented using a core driver framework written in Rust, with language-specific extensions to ensure consistency and reduce complexity.
|
|
12
|
+
- **Stability and Fault Tolerance**: We brought our years of experience to create a bulletproof client.
|
|
13
|
+
- **Backed and Supported by AWS and GCP**: Ensuring robust support and continuous improvement of the project.
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
See GLIDE's [documentation site](https://valkey.io/valkey-glide/).
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
## Supported Engine Versions
|
|
21
|
+
|
|
22
|
+
Refer to the [Supported Engine Versions table](https://github.com/valkey-io/valkey-glide/blob/main/README.md#supported-engine-versions) for details.
|
|
23
|
+
|
|
24
|
+
# Getting Started - Python Wrapper
|
|
25
|
+
|
|
26
|
+
## System Requirements
|
|
27
|
+
|
|
28
|
+
The release of Valkey GLIDE was tested on the following platforms:
|
|
29
|
+
|
|
30
|
+
Linux:
|
|
31
|
+
|
|
32
|
+
- Ubuntu 20 (x86_64/amd64 and arm64/aarch64)
|
|
33
|
+
- Amazon Linux 2 (AL2) and 2023 (AL2023) (x86_64)
|
|
34
|
+
|
|
35
|
+
**Note: Currently Alpine Linux / MUSL is NOT supported.**
|
|
36
|
+
|
|
37
|
+
macOS:
|
|
38
|
+
|
|
39
|
+
- macOS 14.7 (Apple silicon/aarch_64)
|
|
40
|
+
- macOS 13.7 (x86_64/amd64)
|
|
41
|
+
|
|
42
|
+
## Python Supported Versions
|
|
43
|
+
|
|
44
|
+
| Python Version |
|
|
45
|
+
|----------------|
|
|
46
|
+
| 3.9 |
|
|
47
|
+
| 3.10 |
|
|
48
|
+
| 3.11 |
|
|
49
|
+
| 3.12 |
|
|
50
|
+
| 3.13 |
|
|
51
|
+
|
|
52
|
+
Valkey GLIDE transparently supports both the `asyncio` and `trio` concurrency frameworks.
|
|
53
|
+
|
|
54
|
+
## Installation and Setup
|
|
55
|
+
|
|
56
|
+
### ✅ Async Client
|
|
57
|
+
|
|
58
|
+
To install the async version:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install valkey-glide
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Verify installation:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
python3
|
|
68
|
+
>>> import glide
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### ✅ Sync Client
|
|
72
|
+
|
|
73
|
+
To install the sync version:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install valkey-glide-sync
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Verify installation:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
python3
|
|
83
|
+
>>> import glide_sync
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Basic Examples
|
|
89
|
+
|
|
90
|
+
### 🔁 Async Client
|
|
91
|
+
|
|
92
|
+
### ✅ Async Cluster Mode
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import asyncio
|
|
96
|
+
from glide import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
|
|
97
|
+
|
|
98
|
+
async def test_cluster_client():
|
|
99
|
+
addresses = [NodeAddress("address.example.com", 6379)]
|
|
100
|
+
# It is recommended to set a timeout for your specific use case
|
|
101
|
+
config = GlideClusterClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
102
|
+
client = await GlideClusterClient.create(config)
|
|
103
|
+
set_result = await client.set("foo", "bar")
|
|
104
|
+
print(f"Set response is {set_result}")
|
|
105
|
+
get_result = await client.get("foo")
|
|
106
|
+
print(f"Get response is {get_result}")
|
|
107
|
+
|
|
108
|
+
asyncio.run(test_cluster_client())
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### ✅ Async Standalone Mode
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
import asyncio
|
|
115
|
+
from glide import GlideClientConfiguration, NodeAddress, GlideClient
|
|
116
|
+
|
|
117
|
+
async def test_standalone_client():
|
|
118
|
+
addresses = [
|
|
119
|
+
NodeAddress("server_primary.example.com", 6379),
|
|
120
|
+
NodeAddress("server_replica.example.com", 6379)
|
|
121
|
+
]
|
|
122
|
+
# It is recommended to set a timeout for your specific use case
|
|
123
|
+
config = GlideClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
124
|
+
client = await GlideClient.create(config)
|
|
125
|
+
set_result = await client.set("foo", "bar")
|
|
126
|
+
print(f"Set response is {set_result}")
|
|
127
|
+
get_result = await client.get("foo")
|
|
128
|
+
print(f"Get response is {get_result}")
|
|
129
|
+
|
|
130
|
+
asyncio.run(test_standalone_client())
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### 🔂 Sync Client
|
|
136
|
+
|
|
137
|
+
#### ✅ Sync Cluster Mode
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from glide_sync import GlideClusterClientConfiguration, NodeAddress, GlideClusterClient
|
|
141
|
+
|
|
142
|
+
def test_cluster_client():
|
|
143
|
+
addresses = [NodeAddress("address.example.com", 6379)]
|
|
144
|
+
# It is recommended to set a timeout for your specific use case
|
|
145
|
+
config = GlideClusterClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
146
|
+
client = GlideClusterClient.create(config)
|
|
147
|
+
set_result = client.set("foo", "bar")
|
|
148
|
+
print(f"Set response is {set_result}")
|
|
149
|
+
get_result = client.get("foo")
|
|
150
|
+
print(f"Get response is {get_result}")
|
|
151
|
+
|
|
152
|
+
test_cluster_client()
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### ✅ Sync Standalone Mode
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
from glide_sync import GlideClientConfiguration, NodeAddress, GlideClient
|
|
159
|
+
|
|
160
|
+
def test_standalone_client():
|
|
161
|
+
addresses = [
|
|
162
|
+
NodeAddress("server_primary.example.com", 6379),
|
|
163
|
+
NodeAddress("server_replica.example.com", 6379)
|
|
164
|
+
]
|
|
165
|
+
# It is recommended to set a timeout for your specific use case
|
|
166
|
+
config = GlideClientConfiguration(addresses, request_timeout=500) # 500ms timeout
|
|
167
|
+
client = GlideClient.create(config)
|
|
168
|
+
set_result = client.set("foo", "bar")
|
|
169
|
+
print(f"Set response is {set_result}")
|
|
170
|
+
get_result = client.get("foo")
|
|
171
|
+
print(f"Get response is {get_result}")
|
|
172
|
+
|
|
173
|
+
test_standalone_client()
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
For complete examples with error handling, please refer to:
|
|
179
|
+
- [Async Cluster Example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/cluster_example.py)
|
|
180
|
+
- [Async Standalone Example](https://github.com/valkey-io/valkey-glide/blob/main/examples/python/standalone_example.py)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Building & Testing
|
|
184
|
+
|
|
185
|
+
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.
|
|
186
|
+
|
|
187
|
+
## Community and Feedback
|
|
188
|
+
|
|
189
|
+
We encourage you to join our community to support, share feedback, and ask questions. You can approach us for anything on our Valkey Slack: [Join Valkey Slack](https://join.slack.com/t/valkey-oss-developer/shared_invite/zt-2nxs51chx-EB9hu9Qdch3GMfRcztTSkQ).
|
{valkey_glide-2.1.0rc3 → valkey_glide-2.1.0rc5}/local_dependencies/glide-core/src/client/mod.rs
RENAMED
|
@@ -902,6 +902,7 @@ async fn create_cluster_client(
|
|
|
902
902
|
builder = builder.periodic_topology_checks(interval_duration);
|
|
903
903
|
}
|
|
904
904
|
builder = builder.use_protocol(request.protocol.unwrap_or_default());
|
|
905
|
+
builder = builder.database_id(redis_connection_info.db);
|
|
905
906
|
if let Some(client_name) = redis_connection_info.client_name {
|
|
906
907
|
builder = builder.client_name(client_name);
|
|
907
908
|
}
|
|
@@ -979,7 +980,6 @@ async fn create_cluster_client(
|
|
|
979
980
|
}
|
|
980
981
|
}
|
|
981
982
|
}
|
|
982
|
-
|
|
983
983
|
Ok(con)
|
|
984
984
|
}
|
|
985
985
|
|