summaryrefslogtreecommitdiff
path: root/redis/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix: tuple function cannot be passed more than one argument (#2573)Kosuke2023-02-061-1/+1
|
* 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.
* Update __init__ for issue 2215 (#2539)SessionIssue2023-01-051-1/+4
| | | Fallback for issue https://github.com/redis/redis-py/issues/2215
* Failover handling improvements for RedisCluster and Async RedisCluster (#2377)Bar Shaul2022-11-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add Async Support (#1899)Andrew Chen Wang2022-02-221-5/+5
| | | | Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
* Single sourcing the package version (#1791)Chayim2021-12-151-1/+11
|
* Added black and isort (#1734)Anas2021-11-301-37/+37
|
* Pre-4.1.0rc2 version bump (#1761)Chayim2021-11-301-1/+1
|
* Adding RedisCluster client to support Redis Cluster Mode (#1660)Bar Shaul2021-11-251-0/+2
| | | | Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Anas <anas.el.amraoui@live.com>
* 4.1.0rc1 (#1742)Chayim2021-11-251-1/+1
|
* Better removal of hiredis warning (#1726)Alex Wu2021-11-211-1/+1
| | | Co-authored-by: Alex Wu <alex@anyscale.com>
* removing hiredis warning (#1721)Chayim2021-11-171-1/+1
|
* 4.0.0 (#1708)v4.0.0Chayim2021-11-151-1/+3
| | | * 4.0.0
* 4.0.0 rc2 versioning (#1677)Chayim2021-11-091-1/+1
|
* Export Sentinel, and SSL like other classes (#1671)Terence Honles2021-11-081-0/+10
|
* rc1 (#1668)Chayim2021-11-041-1/+1
|
* Fixing the package to include commands (#1649)v4.0.0b3Chayim2021-10-261-1/+1
| | | | | * Fixing the package to include commands. Fixes #1645
* beta2 version and CHANGES update (#1643)v4.0.0b2Chayim2021-10-261-1/+1
|
* 4.0.0 beta 1 versioning - prior to pypi release (#1615)v4.0.0b1ck-releasedrafterChayim2021-10-171-1/+1
|
* Making 3.9.9 a placeholder version - prior to 4.0.0 (#1599)Chayim2021-10-111-1/+1
|
* 3.5.33.5.3Andy McCurdy2020-06-011-1/+1
|
* 3.5.23.5.2Andy McCurdy2020-05-141-1/+1
|
* 3.5.13.5.1Andy McCurdy2020-05-091-1/+1
|
* version 3.5.03.5.0Andy McCurdy2020-04-291-1/+1
|
* 3.4.13.4.1Andy McCurdy2020-02-011-1/+1
|
* Provide AUTH fallback support for connection URLs with a username componentAndy McCurdy2020-01-311-0/+2
| | | | | | | | | | | | | Prior to ACL support, redis-py ignored the username component of Connection URLs. With ACL support, usernames are no longer ignored and are used to authenticate against an ACL rule. Some cloud vendors with managed Redis instances (like Heroku) provide connection URLs with a username component pre-ACL that is not intended to be used. Sending that username to Redis servers < 6.0.0 results in an error. Attempt to detect this condition and retry the AUTH command with only the password such that authentication continues to work for these users. Fixes #1274
* 3.4.03.4.0Andy McCurdy2020-01-301-1/+1
|
* better thread-safety for ConnectionPool (#1270)Andy McCurdy2020-01-301-5/+21
| | | Better thread and fork safety for ConnectionPool and BlockingConnectionPool
* Version 3.3.113.3.11Andy McCurdy2019-10-131-1/+1
| | | | | | check exception.args rather than exception.message. exception.message was deprecated prior to Python 2.7 and some alternative builds have removed it completely.
* Version 3.3.103.3.10Zac Bristow2019-10-101-1/+1
| | | | | | | | | Fix SSL regression introduced in 3.3.9 The wrapper introduced to handle SSL timeout errors in Python 2.7 incorrectly assumed that instances of SSLError would always have a string as their first element. The safer approach is to check the message attribute on the error.
* Version 3.3.93.3.9Zac Bristow2019-10-101-1/+1
| | | | | | | | | Fixes SSL read timeouts in Python 2.7 The ssl module in Python 2.7 raises timeouts as ssl.SSLError instead of socket.timeout. When these timeouts are encountered, the error will be re-raised as socket.timeout so it is handled appropriately by the connection.
* version 3.3.8, fix MONITOR output to account for all types of clients3.3.8huangwei-ds52019-08-191-1/+1
| | | | | | | | | | The client section of MONITOR output varies for TCP connections, unix socket connections and commands executed from Lua scripts. Account for each of these cases by including an additional key `client_type` in the MONITOR output. `client_type` will be one of ('tcp', 'unix', 'lua'). `client_address` and `client_port` vary based on the `client_type`. Fixes #1201
* version 3.3.7, Fixed a socket.error regression introduced in 3.3.03.3.7Andy McCurdy2019-08-131-1/+1
| | | | | | | Prior versions of 3.3.x could potentially raise a raw socket.error (or one of its subclasses) instead of a redis.exceptions.ConnectionError. Fixes #1202
* version 3.3.6, fixed a regression in 3.3.5 with pubsub timeouts3.3.6Andy McCurdy2019-08-061-1/+1
| | | | Fixes #1200
* version 3.3.5, handle socket.timeout errors correctly in Python 2.73.3.5Andy McCurdy2019-08-021-1/+1
| | | | | Fix an issue where socket.timeout errors could be handled by the wrong exception handler in Python 2.7.
* version 3.3.4, more specifically identify nonblocking read errorsAndy McCurdy2019-07-301-1/+1
| | | | | | | versions 3.3.1, 3.3.2 and 3.3.3 could potentially hide ConnectionErrors on Python 2.7. This change accurately identifies errors by both exception class and errno to determine whether a nonblocking socket can be read
* Version 3.3.3. Accomodate Python 2.7.x versions < 2.7.9.3.3.3Andy McCurdy2019-07-301-1/+1
| | | | | | | | The SSL module includes in Python versions < 2.7.9 does not include the SSLWantReadError or SSLWantWriteError exceptions. As such we can't assume they are present just because the ssl module happens to be installed. Fixes #1197
* Version 3.3.2, SSL Blocking Exceptions don't use errno.EWOULDBLOCK3.3.2Andy McCurdy2019-07-291-1/+1
| | | | Ref #1197
* version 3.3.1, fixed a regression involving SSL and non-blocking sockets3.3.1Andy McCurdy2019-07-291-1/+1
| | | | Fixes #1197
* version 3.3.0Andy McCurdy2019-07-281-1/+1
|
* Use nonblocking sockets instead of selectors for healthy connectionsAndy McCurdy2019-07-091-1/+1
| | | | | | | This replaces the work in 3.2.0 to use nonblocking sockets instead of selectors. Selectors proved to be problematic for some environments including eventlet and gevent. Nonblocking sockets should be available in all environments.
* 3.2.13.2.1Andy McCurdy2019-03-151-1/+1
|
* actual 3.2.03.2.0Andy McCurdy2019-02-171-1/+1
|
* 3.1.03.1.0Andy McCurdy2019-01-281-1/+1
|
* redis-py 3.0.13.0.13.0Andy McCurdy2018-11-151-1/+1
|
* fix rst format issuesAndy McCurdy2018-11-151-2/+9
|
* redis-py 3.0.0Andy McCurdy2018-11-151-1/+1
|
* Version 2.10.6, finally...2.10.6Andy McCurdy2017-08-161-1/+1
|
* 2.10.5 (incrementing the version to avoid a pypi issue)2.10.5Andy McCurdy2015-11-021-1/+1
|