summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a replacement for the default cluster node in the event of failure. ↵Bar Shaul2022-12-015-3/+128
| | | | (#2463)
* Wrong number of arguments for `geosearch` command (#2464)dvora-h2022-12-011-1/+1
| | | | Co-authored-by: Chayim <chayim@users.noreply.github.com> Fixes https://github.com/redis/redis-py/issues/2462
* Adding connection step to bloom filter examples (#2478)Nermina Miller2022-11-301-10/+14
| | | | | | | * Fixes #2415, adds a connect step to bloom commands * Update redismodules.rst Apply feedback
* Install package deps in readthedocs build (#2465)Igor Malinovskiy2022-11-221-0/+1
| | | | | | Dependencies are required for "automodule" generation. Co-authored-by: Igor Malinovskiy <igor.malinovskiy@redis.com> Co-authored-by: Chayim <chayim@users.noreply.github.com>
* GitHub Workflows security hardening (#2444)Alex2022-11-214-0/+16
| | | | | | | | | | | | | | | | | | | | * build: harden pypi-publish.yaml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden stale-issues.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden release-drafter.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden integration.yaml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> Signed-off-by: Alex <aleksandrosansan@gmail.com> Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Fix Sentinel.execute_command to execute across the entire sentinel cluster ↵SyedTahaA2022-11-212-2/+3
| | | | | | | (#2459) * Change sentinel execute command to execute across the entire cluster * Add change to CHANGES file
* Removed bad tokens from connection_examples.ipynb to fix the json output (#2455)Bar Shaul2022-11-211-5/+0
|
* Retry documentation. (#2166) (#2456)Luca Cillario2022-11-213-2/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Retry documentation. (#2166) * Fixed typo. * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> * Update docs/retry.rst Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com> Co-authored-by: Nermina Miller <102551568+nermiller@users.noreply.github.com>
* Version 4.4.0rc4 (#2451)v4.4.0rc4dvora-h2022-11-101-1/+1
|
* Failover handling improvements for RedisCluster and Async RedisCluster (#2377)Bar Shaul2022-11-1014-166/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cluster&AsyncCluster: Removed handling of timeouts/connection errors within the cluster loop, fixed "cannot pickle '_thread.lock' object" bug, added client's side failover handling improvements * Fixed linters * Type fixes * Added to CHANGES * Added getter and setter for the client's retry object and added more tests * Fixed linters * Fixed test * Fixed test_client_kill test * Changed get_default_backoff to default_backoff, removed retry_on_error and connection_error_retry_attempts from RedisCluster, default retry changed to no retries * Fixing linters * Reverting deletion of connection_error_retry_attempts to maintain backward compatibility * Updating retry object for existing and new connections * Changed the default value of reinitialize_steps from 10 to 5 * fix review comments Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* CredentialsProvider class added to support password rotation (#2261)Bar Shaul2022-11-1013-74/+898
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A CredentialsProvider class has been added to allow the user to add his own provider for password rotation * Moved CredentialsProvider to a separate file, added type hints * Changed username and password to properties * Added: StaticCredentialProvider, examples, tests Changed: CredentialsProvider to CredentialProvider Fixed: calling AUTH only with password * Changed private members' prefix to __ * fixed linters * fixed auth test * fixed credential test * Raise an error if username or password are passed along with credential_provider * fixing linters * fixing test * Changed dundered to single per side underscore * Changed Connection class members username and password to properties to enable backward compatibility with changing the members value on existing connection. * Reverting last commit and adding backward compatibility to 'username' and 'password' inside on_connect function * Refactored CredentialProvider class * Fixing tuple type to Tuple * Fixing optional string members in UsernamePasswordCredentialProvider * Fixed credential test * Added credential provider support to AsyncRedis * linters * linters * linters * linters - black Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Fix special response parsing options handling (#2302)Shay Fadida2022-11-095-2/+36
| | | | | | | | | | | | | | | | | * Fix special response parsing options handling When using special response parsing options like `NEVER_DECODE` and `EMPTY_RESPONSE`, don't pass them to the response callbacks because some of them are not prepared for receiving named arguments. Instead, redis-py should use them before calling the callbacks and then discard them. * Use kwargs instead of options * change options to kwargs in asyncio/cluster.py/L878 Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Enable AsyncIO cluster mode lock (#2446)Milhan2022-11-095-7/+90
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* 4.4.0-rc3 (#2447)v4.4.0rc3Chayim2022-11-081-1/+1
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* fix docs for password protected socket access (#2378)Robert Hofer2022-11-076-5/+6
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Remove the superflous SocketBuffer from asyncio PythonParser (#2418)Kristján Valur Jónsson2022-10-302-137/+42
| | | | | | | | | | | * Remove buffering from asyncio SocketBuffer and rely on on the underlying StreamReader * Skip the use of SocketBuffer in PythonParser * Remove SocketBuffer altogether * Code cleanup * Fix unittest mocking when SocketBuffer is gone
* Remove `deprecated` dependency (#2386)Aarni Koskela2022-10-307-16/+39
| | | No need for an external library just for 5 annotations.
* Link to the latest pre-release (#2440)Chayim2022-10-301-0/+1
|
* Remove default None value from LMPOP (#2438)dvora-h2022-10-301-1/+1
|
* Fix KeyError in async cluster - initialize before execute multi key commands ↵dvora-h2022-10-302-0/+28
| | | | | | | | | (#2439) * Fix KeyError in async cluster * link to issue * typo
* Adding python 3.11 to CI (#2428)Chayim2022-10-301-2/+2
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add missing dots in README.md (#2435)Andrei Andrukhovich2022-10-301-4/+4
|
* Tidy up asyncio examples. (#2431)Sam Bull2022-10-301-41/+27
|
* fix: catch OSError on asyncio (#2412)송형근(Hyeongguen Song)/DnU2022-10-251-2/+2
|
* doc: redismodules.rst fix (#2429)Ashik Shezan2022-10-251-1/+1
| | | | | Parentheses were not closed Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Test `test_get_moveable_keys` was broken (#2411)Nikita Sobolev2022-10-251-15/+7
| | | | | | | | | * Test `test_get_moveable_keys` was broken * Update test_command_parser.py * Do not sort constant lists Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Add to_string method for GeoValue (#2404)Anne Yang2022-10-251-0/+3
| | | | | | | | | * Add to_string method for GeoValue * fix code style * simplify code Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fixing bloom tests (#2430)Chayim2022-10-252-6/+6
|
* Deprecate `add_doccument` (FT.ADD) (#2425)dvora-h2022-10-243-369/+178
| | | | | | | | | * deprecate add_doccuments * linters * linters * async tests
* Updating the docker image for the module cluster (#2426)Chayim2022-10-241-1/+1
|
* Updating release drafter title hashes (#2422)Chayim2022-10-241-4/+3
| | | Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix `TIMESERIES` (round floats) and `JSON` tests (#2421)dvora-h2022-10-235-14/+7
| | | | | * Fix timeseries tests (round floats) * fix json tests
* Fixing invalid vulnerability report (#2424)Chayim2022-10-231-0/+2
| | | | | * Fixing vuln report * Fixed comment
* Update dockers tags (#2409)dvora-h2022-10-181-8/+8
|
* remove tdigest.add weights (#2408)dvora-h2022-10-064-50/+40
|
* Simplify async timeouts and allowing `timeout=None` in ↵v4.4.0rc2Kristján Valur Jónsson2022-09-295-112/+57
| | | | | | | | | | | | | | | | | | | `PubSub.get_message()` to wait forever (#2295) * Avoid an extra "can_read" call and use timeout directly. * Remove low-level read timeouts from the Parser, now handled in the Connection * Allow pubsub.get_message(time=None) to block. * update Changes * increase test timeout for robustness * expand with statement to avoid invoking null context managers. remove nullcontext * Remove unused import
* 4.4.0rc2 (#2403)dvora-h2022-09-291-1/+1
|
* Dev/no can read (#2360)Kristján Valur Jónsson2022-09-295-44/+41
| | | | | | | | * make can_read() destructive for simplicity, and rename the method. Remove timeout argument, always timeout immediately. * don't use can_read in pubsub * connection.connect() now has its own retry, don't need it inside a retry loop
* Add `nowait` flag to `asyncio.Connection.disconnect()` (#2356)Kristján Valur Jónsson2022-09-293-40/+55
| | | | | | | | | | | | | | * Don't wait for disconnect() when handling errors. This can result in other errors such as timeouts. * add CHANGES * Update redis/asyncio/connection.py Co-authored-by: Aarni Koskela <akx@iki.fi> * await a task to try to diagnose unittest failures in CI Co-authored-by: Aarni Koskela <akx@iki.fi>
* Catch `Exception` and not `BaseException` in the `Connection` (#2104)Kristján Valur Jónsson2022-09-294-7/+121
| | | | | | | * Add failing unittests for passing BaseException through * Resolve failing unittest * Remove redundant checks for asyncio.CancelledError
* Fix - aggregation request arguments for LIMIT (#2393)dvora-h2022-09-291-4/+2
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* vecsim docs fix (#2402)Chayim2022-09-281-1/+1
|
* Dev/no lock (#2308)Kristján Valur Jónsson2022-09-284-66/+29
| | | | | * Remove async lock in asyncio.Connection.read_response * Skip concurrent-commands test on non-pooled connections
* Update GitHub Actions versions (#2389)Aarni Koskela2022-09-283-18/+14
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Support Hiredis >= 1.x only (remove `packaging` dependency) (#2385)Aarni Koskela2022-09-287-48/+16
| | | | | | | * Only set HIREDIS_AVAILABLE if Hiredis is not 0.x * Remove compatibility code for old Hiredis versions * Move packaging dependency to dev only
* Reinstate codecov in CI (removed in #2392) (#2394)Aarni Koskela2022-09-211-5/+4
| | | Since this is a public project, the token shouldn't be necessary
* Add support for new TDIGEST features and changes (#2392)dvora-h2022-09-217-88/+229
| | | | | | | | | | | * Add support to TDIGEST * linters * linters * linters * disable View Test Results in CI
* Adding support for readable test results (#2381)Chayim2022-09-152-4/+19
| | | | | | | | | | | | | | | * test result xml share * trying to limit to failed * pathing upload * syntax * syntax * renaming test results * name fix
* workflows/integration: trailofbits/gh-action-pip-audit is now ↵William Woodruff2022-09-141-1/+1
| | | | | | | pypa/gh-action-pip-audit (#2380) Signed-off-by: William Woodruff <william@trailofbits.com> Signed-off-by: William Woodruff <william@trailofbits.com>
* Fix/readme links (#2368)Graeme Clements2022-09-072-1/+2
| | | | | * Updated broken README.md links * Updated CHANGES