summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add missing `Union` type in method `StreamCommands.xclaim()` (#2553)David Pacsuta2023-01-221-1/+1
| | | | `Union` was missing in front of `[List[StreamIdT], Tuple[StreamIdT]]` and VSCode was producing an error because of it. After adding `Union` the type annotation is correctly identified by VSCode.
* Change redismod docker to redis-stack-server (#2556)dvora-h2023-01-191-4/+4
| | | | | | | | | | | | | * Change redismod docker to redis-stack-server * redis-stack-server * syntax * Update tox.ini * fetching docker from redis repo Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
* version 4.4.2 (#2550)v4.4.2dvora-h2023-01-111-1/+1
|
* Add support to BF.CARD (#2545)shacharPash2023-01-114-0/+40
| | | | | | | * Add support to BF.CARD * Add Async test * change to with pytest.raises
* add support for custom connection pool class in NodesManager (#2547)Dongkeun Lee2023-01-112-2/+20
| | | Co-authored-by: zach.lee <zach.lee@sendbird.com>
* allow replica to master promotion in nodes_cache (#2549)Dongkeun Lee2023-01-112-0/+53
| | | Co-authored-by: zach.lee <zach.lee@sendbird.com>
* String cleanse (#2548)Jan2023-01-114-1/+9
| | | | | | | * Fixed string escape and added tests * Add Change * Name change
* Version 4.4.1 (#2544)v4.4.1dvora-h2023-01-081-1/+1
|
* add type checking for graph __eq__ (#2531)dvora-h2023-01-083-0/+12
|
* ValueError must be AttributeError in __init__.py (#2542)SessionIssue2023-01-081-1/+1
| | | | | | | | | * Revert "Update __init__ for issue 2215 (#2539)" This reverts commit f14ed1fc822a88a21bbfc64e36bf8b09e5c9386c. * Update __init__.py ValueError must be AttributeError ofc.
* Make PythonParser resumable (#2510)Kristján Valur Jónsson2023-01-057-42/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | * PythonParser is now resumable if _stream IO is interrupted * Add test for parse resumability * Clear PythonParser state when connection or parsing errors occur. * disable test for cluster mode. * Perform "closed" check in a single place. * Update tests * Simplify code. * Remove reduntant test, EOF is detected inside _readline() * Make syncronous PythonParser restartable on error, same as HiredisParser Fix sync PythonParser * Add CHANGES * isort * Move MockStream and MockSocket into their own files
* Fix incorrect _disconnect_raise docstring (#2534)Mohsin Haider2023-01-051-2/+2
|
* add str support for set ex parameter (#2529)shacharPash2023-01-052-0/+9
|
* replase get_event_loop wite get_running_loop (#2530)dvora-h2023-01-056-20/+20
|
* Update __init__ for issue 2215 (#2539)SessionIssue2023-01-051-1/+4
| | | Fallback for issue https://github.com/redis/redis-py/issues/2215
* Including startup instructions via redis-stack docker (#2535)Chayim2023-01-041-0/+6
|
* Add dialect to ft aggregate (#2537)DvirDukhan2023-01-023-81/+131
| | | | | | | | | * add dialect to aggregate request * added test * format * async test
* Support for resetchannels since Redis 6.2.0 (#2514)stitch2022-12-261-0/+10
|
* Allow EVAL_RO and EVALSHA_RO to be routed to read replica (#2494)Dongkeun Lee2022-12-254-4/+12
| | | | | | | | | | | | * fix typo (Lue -> Lua) * run eval_ro, evalsha_ro test on redis cluster * Add eval_ro, evalsha_ro to read only commands * assert that commands are run in a round robin manner Co-authored-by: zach.lee <zach.lee@sendbird.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Fix for Unhandled exception related to self.host with unix socket (#2520)Jason Joy Atsu Winmorre2022-12-252-11/+24
| | | | | | | | | * Fix for Unhandled exception related to self.host with unix socket * Added change to the CHANGES file * fix linter error * Reformatted connection.py file
* Add `timeout` parameter for SentinelManagedConnection (#2495)Guillaume Tassery2022-12-252-3/+11
|
* Add TIMEOUT to query class (#2519)shacharPash2022-12-213-0/+26
| | | | | | | | | | | | | | | | | | | * add timeout to query class * Add test_timeout * fix lines * fix format * add test & fixes * merge tests * change timeout to not_a_number * change q1 to q2 * Fix async method
* Fix `JSON.ARRINDEX` test (#2527)dvora-h2022-12-211-11/+4
| | | | | | | * Fix test json.arrindex * linters * linters
* Add OpenTelemetry example with Uptrace backend (#2452)Vladimir Mihailenco2022-12-1418-2/+1248
| | | | | | | | | | | * chore: add opentelemetry example * chore: add opentelemetry API Jupyter notebook * chore: use a shorter title * chore: cleanup Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* Raising NotImplementedError for certain CLUSTER commands (#2504)dvora-h2022-12-142-0/+18
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Switch docs to furo theme (#2492)Igor Malinovskiy2022-12-144-14/+53
| | | | | | | * Switch to docs to Furo theme * Add logo and year Co-authored-by: Igor Malinovskiy <igor.malinovskiy@redis.com>
* Combine auto-concatenated strings (#2482)David Gilman2022-12-1420-64/+58
|
* Add support for certain LATENCY commands (#2503)dvora-h2022-12-143-2/+36
| | | | | * add latency commands * fix tests in cluster
* Intentional NotImplementedError for LATENCY commands that should not be in ↵Chayim2022-12-122-0/+38
| | | | client (#2501)
* Updating graph tests to support new execution plan (#2486)Raz Monsonego2022-12-063-19/+11
|
* Version 4.4.0 (#2485)v4.4.0Chayim2022-12-042-2/+2
|
* Updating dev dependencies (#2475)Chayim2022-12-044-12/+16
|
* Removing Deprecated LGTM (#2473)Chayim2022-12-041-1/+0
|
* Use explicit index name in RediSearch example (#2466)Igor Malinovskiy2022-12-041-7/+9
| | | | Co-authored-by: Igor Malinovskiy <igor.malinovskiy@redis.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
* Async clusters: Support creating locks inside async functions (#2471)Utkarsh Gupta2022-12-041-1/+5
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* Async: added 'blocking' argument to call lock method (#2454)Sibuken2022-12-013-0/+24
| | | Co-authored-by: Chayim <chayim@users.noreply.github.com>
* 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>