Up to [cvs.NetBSD.org] / pkgsrc / databases / py-redis
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-redis: updated to 8.1.0 8.1.0 redis-py now supports server-pushed maintenance notifications in the asyncio stack for both standalone and cluster clients, bringing the async client to parity with the sync implementation. When a Redis deployment signals maintenance events (such as node migration or failover windows), the async client reacts through the maintenance-notifications handler (redis/maint_notifications.py and its async integration under redis/asyncio/), allowing applications to adapt connection handling during maintenance without downtime.
py-redis: updated to 8.0.0 8.0.0 Experimental Features Added support for new array commands New Features Support Cluster PubSub in asyncio Add Redis Keyspace Notifications Support for Redis Cluster Add random load balancing strategy which allows for use of the primary Add FPHA (floating-point homogeneous array) arg support to JSON.SET Added custom Claude command + XNACK command support Adding Time Series Multiple Aggregators support Adding support for new COUNT aggregator for some sorted set commands - ZINTER, ZINTERSTORE, ZUNION, ZUNIONSTORE Adding support for new INCREX command Add support for PubSub subscriptions with binary channel names and handlers Breaking changes Type hints improvements - fixing static code analysis issues related to combined sync and async return types(vectorsets + commands in core.py) Type hints improvements - fixing static code analysis issues related to combined sync and async return types - modules Add Redis Keyspace Notifications Support for Redis Cluster Added support for subkey notifications Changing the default protocol used to RESP3, keeping the responses for the default config compatible with the current RESP2 shape. Adding the possibility to opt-in for unified responses for both protocols. Type Lock.extend and Lock.reacquire as Literal[True] Handle cluster slot migration in ClusterPubSub (shard subscription reconciliation) Avoid zero-timeout async reads in hiredis connections readiness checks and replace async's can_read_destructive with non-destructive can_read. Updates in default connection and retry settings Bug Fixes fix: guard disconnect() against RuntimeError on Python 3.13+ Fix CacheProxyConnection hang when invalidation arrives on another connection fix: handle scientific notation in score_cast_func for RESP2 Fix TypeError in CacheProxyConnection when cached response is non-bytes Fix async cluster connection cleanup on topology refresh Normalize scalar prefixes in IndexDefinition Avoid zero-timeout async reads in hiredis connections readiness checks and replace async's can_read_destructive with non-destructive can_read. Preserve explicit None for client metadata config Deprecations Align deprecation of lib_name/lib_version in async cluster Add deprecation notice to setex() method documentation Avoid zero-timeout async reads in hiredis connections readiness checks and replace async's can_read_destructive with non-destructive can_read.
py-redis: updated to 7.4.0 7.4.0 Bug Fixes Fix AttributeError in cluster metrics recording when connection is None or ClusterNode object instance is used to extract the connection info Fixing security concern in repr methods for ConnectionPools - passwords might leak in plain text logs Refactored connection count and SCH metric collection Experimental Features -Refactored health check logic for MultiDBClient
py-redis: updated to 7.1.0 7.1.0 New Features Adding MSETEX command support. Adding CLAIM option to XREADGROUP command + unit tests Apply routing and response aggregation policies in OSS Cluster mode Experimental Features Adding support for CAS/CAD commands. Adding support for HYBRID search. Breaking changes (in experimental features) Replace default health check and failure detector with custom Bug Fixes Add **options to parse functions for sentinel Generating unique command cache key
py-redis: updated to 7.0.1 7.0.1 Maintenance Add 'multi_database' section to documentation index Revised multi-database client documentation Adding info about Multi-database client in README.md 7.0.0 One of the main features introduced in this release is a new type of client MultiDBClient. The purpose of this client is a communication with multiple databases that are eventually consistent (Active-Active setup) and handling failures by failover across databases. More information could be found in docs.
py-redis: updated to 6.1.0 6.1.0 New Features Support for transactions in RedisCluster client Add equality and hashability to Retry and backoff classes Bug Fixes Fix RedisCluster ssl_check_hostname not set to connections. For SSL verification with ssl_cert_reqs="none", check_hostname is set to False Prevent RuntimeError while reinitializing clusters - sync and async Add equality and hashability to Retry and backoff classes Fix AttributeError on ClusterPipeline Maintenance Updating the readme and lib version to contain the changes from the latest stable release Export REDIS_MAJOR_VERSION correctly in run-tests Fix matrix in hiredis-py-integration.yaml Test against unstable hiredis-py Adding return types for the RedisModuleCommands class Updating Redis 8 test image for GH pipeline Allow newer PyJWT versions Change type hints with possible None args or return types to be annotated with Optional - includes commands in core.py and json commands
Fix PLIST after py-setuptools update; bump depends and revision
py-redis: updated to 5.0.2 5.0.2 New Features Allow to control the minimum SSL version Add modules support to async RedisCluster Adding lock_name to LockError Add GEOSHAPE field type for index creation of RediSearch Bug Fixes Fix retry logic for pubsub and pipeline Ignore TypeError on disconnect (within multiprocess) Release already acquired connections on ClusterPipeline, when get_connection raises an exception Fix possible pipeline connections leak Return a copy of the response from cache Fix: HSET unexpectedly mutates the list passed to items Fix acl_genpass with bits Allow the parsing of the asking command to forward original options Fix parsing of FT.PROFILE result Use disable_decoding in async read_response with hiredis parser. Fix return types in json commands Fix Specifying Target Nodes broken hyperlink Maintenance Fix incorrect asserts in test and ensure connections are closed Revert stale issue version update Docs: Add timeout parameter for get_message example Bump codecov/codecov-action from 3 to 4 Bump actions/stale from 3 to 9 Fix grammer in BlockingConnectionPool class documentation Updating async-timeout to 4.0.3 Fix type hint of arbitrary argument lists Fix JSON.OBJLEN type hint Fix HDEL type hint Docs: organize cluster mode part of lua scripting Update reported version deprecation in asyncio.client Make the connection callback methods public again, add documentation Update repr of important classes with module name and recommended "< … Typo in advanced features documentation Fix typos in documentation Add "sum" to DUPLICATE_POLICY documentation of TS.CREATE, TS.ADD and TS.ALTER Fixed typo in ocsp.py Creating CODEOWNERS for documentation
py-redis: updated to 5.0.0. 5.0.0 Triggers and Functions support Triggers and Functions allow you to execute server-side functions triggered when key values are modified or created in Redis, a stream entry arrival, or explicitly calling them. Simply put, you can replace Lua scripts with easy-to-develop JavaScript or TypeScript code. Move your business logic closer to the data to ensure a lower latency, and forget about updating dependent key values manually in your code. Try it for yourself with Quick start Full Redis 7.2 and RESP3 support Python 3.7 End-of-Life Python 3.7 has reached its end-of-life (EOL) as of June 2023. This means that starting from this date, Python 3.7 will no longer receive any updates, including security patches, bug fixes, or improvements. If you continue to use Python 3.7 post-EOL, you may expose your projects and systems to potential security vulnerabilities. We ended its support in this version and strongly recommend migrating to Python 3.10. 🐛 Bug Fixes Fix timeout retrying on pipeline execution Fix socket garbage collection 🧰 Maintenance Updating client license to clear, MIT Add py.typed in accordance with PEP-561 Dependabot label change Fix type hints in SearchCommands Add sync modules (except search) tests to cluster CI Fix a duplicate word in CONTRIBUTING.md Fixing doc builds Change cluster docker to edge and enable debug command
py-redis: updated to 4.4.0 v4.4.0 New Features (since 4.4.0rc4) Async clusters: Support creating locks inside async functions Bug Fixes (since 4.4.0rc4) Async: added 'blocking' argument to call lock method Added a replacement for the default cluster node in the event of failure. Fixed geosearch: Wrong number of arguments for geosearch command Maintenance (since 4.4.0rc4) Updating dev dependencies Removing deprecated LGTM Added an explicit index name in RediSearch example Adding connection step to bloom filter examples
py-redis: updated to 4.3.5 Version 4.3.5 Changes This is a maintenance release of redis-py, prior to the release of 4.4.0. This release contains both bug fixes, and features, keeping pace with the release of redis-stack capabilities. 🚀 New Features Add support for TIMESERIES 1.8 Graph - add counters for removed labels and properties Add support for TDIGEST.QUANTILE extensions Add TDIGEST.TRIMMED_MEAN Add support for async GRAPH module Support TDIGEST.MERGESTORE and make compression optional on TDIGEST.CREATE Adding reserve as an alias for create, so that we have BF.RESERVE and CF.RESERVE accuratenly supported 🐛 Bug Fixes Fix async connection.is_connected to return a boolean value Fix: workaround asyncio bug on connection reset by peer Fix crash: key expire while search Async cluster: fix concurrent pipeline Fix async SEARCH pipeline Fix KeyError in async cluster - initialize before execute multi key commands 🧰 Maintenance Supply chain risk reduction: remove dependency on library named deprecated Search test - Ignore order of the items in the response Fix GRAPH.LIST & TDIGEST.QUANTILE tests Fix TimeSeries range aggregation (twa) tests Mark TOPK.COUNT as deprecated
py-redis: updated to 4.3.0 Version 4.3.0 🔥 Breaking Changes Replace OSError exceptions from can_read with redis.ConnectionError Updated FUNCTION LOAD changes (from release 7.0 rc3 to support redis 7.0 final) 🚀 New Features Get command keys for subcommands Add support for CLUSTER SHARDS Add support for COMMAND LIST Add Async RedisCluster ACL SETUSER - add selectors and key based permissions Support for redis 7 streams features Async Connection: Allow PubSub.run() without previous subscribe() Implemented LATENCY HISTOGRAM by always throwing NotImplementedError Add async supoort for SEARCH commands Retry(): Support negative retries value Add support for MODULE LOADEX INFO - add support for taking multiple section arguments CONFIG SET - add the ability to set multiple parameters in one call CONFIG GET - add the ability to pass multiple pattern parameters in one call Add support for COMMAND GETKEYSANDFLAGS Support CASESENSITIVE for TAG fields 🐛 Bug Fixes Rename 'update_supported_erros' to 'update_supported_errors' in Retry module Fix execute_command() determining nodes error when no key command Fix incorrect return statement in auth 🧰 Maintenance Add unittest for PubSub.connect() Fix incorrect return annotation in asyncio.lock Minor cleanups in commands/cluster.py Update xtrim type annotation Async tests for redis commands, json, bloom, timeseries Fixed typing in getex command
py-redis: updated to 4.2.2 Version 4.2.2 Changes 🚀 New Features Extended "CLUSTER NODES" parser to support special slot entries 🔥 NOTE: This change is potentially breaking depending on your use of specialized slot entries. Support for bytes was added Add support for BIT|BYTE option available in redis 7 🐛 Bug Fixes Fix imports in for async Always clear reference to closed reader/writer Fix disable decode for dump command in async 🧰 Maintenance Cluster commands linkdocs Clarify bit type in setbit/getbit documentation Clean up test supoort enterprise environments Vector similarity search example Fix search query with params tests Version 4.2.1 Changes 🚀 New Features Add support for CLUSTER MYID Add dialect support for RediSearch queries 🧰 Maintenance Fix black Make typing_extensions conditional to Python < 3.8 Version 4.2.0 Changes 🚀 New Features Support for Vector Fields for Vector Similarity Search 🐛 Bug Fixes Fix cluster scan command cursors & scan_iter 🧰 Maintenance Remove verbose logging from cluster initializers Mark tests for redis-stack
py-redis: updated to 4.1.4 4.1.4: New Features Adding ExecutionPlan support for graph Vector similiary search support
py-redis: updated to 4.1.0 Version 4.1.0 🚀 New Features OCSP stapling support Support for SELECT Support for specifying error types with retry Support for RESET command since Redis 6.2.0 Support CLIENT TRACKING Support WRITE in CLIENT PAUSE JSON set_file and set_path support Allow ssl_ca_path with rediss:// urls Support for password-encrypted SSL private keys Support SYNC and PSYNC 🐛 Bug Fixes Retry on error exception and timeout fixes Fixing read race condition during pubsub Fixing exception in listen Fixed MovedError, and stopped iterating through startup nodes when slots are fully covered Socket not closing after server disconnect Single sourcing the package version Ensure redis_connect_func is set on uds connection 🧰 Maintenance SRTALGO - Skip for redis versions greater than 7.0.0 Documentation updates Add CI action to install package from repository commit hash Fix link in lmove docstring Disabling JSON.DEBUG tests Version 4.0.2 🐛 Bug Fixes Restoring Sentinel commands to redis client Better removal of hiredis warning 🧰 Maintenance Adding links to redis documents in function calls Version 4.0.1 🐛 Bug Fixes Removing command on initial connections Removing hiredis warning when not installed Version 4.0.0 🚀 New Features FT.EXPLAINCLI intentionally raising NotImplementedError 🐛 Bug Fixes Restoring ZRANGE desc for Redis < 6.2.0 Response parsing occasionally fails to parse floats Re-enabling read-the-docs 🧰 Maintenance Call HSET after FT.CREATE to avoid keyspace scan Unit tests fixes for compatibility Improve documentation about Locks Fixes to allow --redis-url to pass through all tests Fix unit tests running against Redis 4.0.0 Search alias test fix Adding RediSearch/RedisJSON tests Updating codecov rules Tests to validate custom JSON decoders Added breaking icon to release drafter
py-redis: updated to 3.3.8
* 3.3.8
* Fixed MONITOR parsing to properly parse IPv6 client addresses, unix
socket connections and commands issued from Lua.
* 3.3.7
* Fixed a regression introduced in 3.3.0 where socket.error exceptions
(or subclasses) could potentially be raised instead of
redis.exceptions.ConnectionError.
* 3.3.6
* Fixed a regression in 3.3.5 that caused PubSub.get_message() to raise
a socket.timeout exception when passing a timeout value.
* 3.3.5
* Fix an issue where socket.timeout errors could be handled by the wrong
exception handler in Python 2.7.
* 3.3.4
* More specifically identify nonblocking read errors for both SSL and
non-SSL connections. 3.3.1, 3.3.2 and 3.3.3 on Python 2.7 could
potentially mask a ConnectionError.
* 3.3.3
* The SSL module in Python < 2.7.9 handles non-blocking sockets
differently than 2.7.9+. This patch accommodates older versions
* 3.3.2
* Further fixed a regression introduced in 3.3.0 involving SSL and
non-blocking sockets.
* 3.3.1
* Fixed a regression introduced in 3.3.0 involving SSL and non-blocking
sockets.
* 3.3.0
* Resolve a race condition with the PubSubWorkerThread.
* Cleanup socket read error messages.
* Cleanup the Connection's selector correctly.
* Added a Monitor object to make working with MONITOR output easy.
* Internal cleanup: Removed the legacy Token class which was necessary
with older version of Python that are no longer supported.
* Response callbacks are now case insensitive. This allows users that
call Redis.execute_command() directly to pass lower-case command
names and still get reasonable responses.
* Added support for hiredis-py 1.0.0 encoding error support. This should
make the PythonParser and the HiredisParser behave identically
when encountering encoding errors.
* All authentication errors now properly raise AuthenticationError.
AuthenticationError is now a subclass of ConnectionError, which will
cause the connection to be disconnected and cleaned up appropriately.
* Add READONLY and READWRITE commands.
* Remove selectors in favor of nonblocking sockets. Selectors had
issues in some environments including eventlet and gevent. This should
resolve those issues with no other side effects.
* Fixed an issue with XCLAIM and previously claimed but not removed
messages.
* Allow for single connection client instances. These instances
are not thread safe but offer other benefits including a subtle
performance increase.
* Added extensive health checks that keep the connections lively.
Passing the "health_check_interval=N" option to the Redis client class
or to a ConnectionPool ensures that a round trip PING/PONG is successful
before any command if the underlying connection has been idle for more
than N seconds. ConnectionErrors and TimeoutErrors are automatically
retried once for health checks.
* Changed the PubSubWorkerThread to use a threading.Event object rather
than a boolean to control the thread's life cycle.
* Fixed a bug in Pipeline error handling that would incorrectly retry
ConnectionErrors.
py-redis: updated to 3.2.0 3.2.0 * Added support for select.poll to test whether data can be read on a socket. This should allow for significantly more connections to be used with pubsub. * Attempt to guarentee that the ConnectionPool hands out healthy connections. Healthy connections are those that have an established socket connection to the Redis server, are ready to accept a command and have no data available to read. * Use the socket.IPPROTO_TCP constant instead of socket.SOL_TCP. IPPROTO_TCP is available on more interpreters (Jython for instance). * Fixed a regression introduced in 3.0 that mishandles exceptions not derived from the base Exception class. KeyboardInterrupt and gevent.timeout notable. * Significant improvements to handing connections with forked processes. Parent and child processes no longer trample on each others' connections. * PythonParser no longer closes the associated connection's socket. The connection itself will close the socket.
py-redis: updated to 3.0.1
* 3.0.1
* Fixed regression with UnixDomainSocketConnection caused by 3.0.0.
* Fixed an issue with the new asynchronous flag on flushdb and flushall.
* Updated Lock.locked() method to indicate whether *any* process has
acquired the lock, not just the current one. This is in line with
the behavior of threading.Lock.
* 3.0.0
BACKWARDS INCOMPATIBLE CHANGES
* When using a Lock as a context manager and the lock fails to be acquired
a LockError is now raised. This prevents the code block inside the
context manager from being executed if the lock could not be acquired.
* Renamed LuaLock to Lock.
* Removed the pipeline based Lock implementation in favor of the LuaLock
implementation.
* Only bytes, strings and numbers (ints, longs and floats) are acceptable
for keys and values. Previously redis-py attempted to cast other types
to str() and store the result. This caused must confusion and frustration
when passing boolean values (cast to 'True' and 'False') or None values
(cast to 'None'). It is now the user's responsibility to cast all
key names and values to bytes, strings or numbers before passing the
value to redis-py.
* The StrictRedis class has been renamed to Redis. StrictRedis will
continue to exist as an alias of Redis for the forseeable future.
* The legacy Redis client class has been removed. It caused much confusion
to users.
* ZINCRBY arguments 'value' and 'amount' have swapped order to match the
the Redis server. The new argument order is: keyname, amount, value.
* MGET no longer raises an error if zero keys are passed in. Instead an
empty list is returned.
* MSET and MSETNX now require all keys/values to be specified in a single
dictionary argument named mapping. This was changed to allow for future
options to these commands in the future.
* ZADD now requires all element names/scores be specified in a single
dictionary argument named mapping. This was required to allow the NX,
XX, CH and INCR options to be specified.
* Removed support for EOL Python 2.6 and 3.3.
OTHER CHANGES
* Added missing DECRBY command.
* CLUSTER INFO and CLUSTER NODES respones are now properly decoded to
strings.
* Added a 'locked()' method to Lock objects. This method returns True
if the lock has been acquired and owned by the current process,
otherwise False.
* EXISTS now supports multiple keys. It's return value is now the number
of keys in the list that exist.
* Ensure all commands can accept key names as bytes. This fixes issues
with BLPOP, BRPOP and SORT.
* All errors resulting from bad user input are raised as DataError
exceptions. DataError is a subclass of RedisError so this should be
transparent to anyone previously catching these.
* Added support for NX, XX, CH and INCR options to ZADD
* Added support for the MIGRATE command
* Added support for the MEMORY USAGE and MEMORY PURGE commands.
* Added support for the 'asynchronous' argument to FLUSHDB and FLUSHALL
commands.
* Added support for the BITFIELD command.
* Improved performance on pipeline requests with large chunks of data.
* Fixed test suite to not fail if another client is connected to the
server the tests are running against.
* Added support for SWAPDB.
* Added support for all STREAM commands.
* SHUTDOWN now accepts the 'save' and 'nosave' arguments.
* Added support for ZPOPMAX, ZPOPMIN, BZPOPMAX, BZPOPMIN.
* Added support for the 'type' argument in CLIENT LIST.
* Added support for CLIENT PAUSE.
* Added support for CLIENT ID and CLIENT UNBLOCK.
* GEODIST now returns a None value when referencing a place that does
not exist.
* Added a ping() method to pubsub objects.
* Fixed a bug with keys in the INFO dict that contained ':' symbols.
* ssl_cert_reqs now has a default value of 'required' by default. This
should make connecting to a remote Redis server over SSL more secure.
* Fixed the select system call retry compatibility with Python 2.x.
* max_connections is now a valid querystring argument for creating
connection pools from URLs.
* Added the UNLINK command.
* Added socket_type option to Connection for configurability.
* Lock.do_acquire now atomically sets acquires the lock and sets the
expire value via set(nx=True, px=timeout).
* Added 'count' argument to SPOP.
* Fixed an issue parsing client_list respones that contained an '='.
PkgSrc:
renamed py-redis-py to py-redis
2.10.5
* Allow URL encoded parameters in Redis URLs. Characters like a "/" can
now be URL encoded and redis-py will correctly decode them.
* Added support for the WAIT command.
* Better shutdown support for the PubSub Worker Thread. It now properly
cleans up the connection, unsubscribes from any channels and patterns
previously subscribed to and consumes any waiting messages on the socket.
* Added the ability to sleep for a brief period in the event of a
WatchError occuring.
* Fixed a bug with pipeline error reporting when dealing with characters
in error messages that could not be encoded to the connection's
character set.
* Fixed a bug in Sentinel connections that would inadvertantly connect
to the master when the connection pool resets.
* Better timeout support in Pubsub get_message.
* Fixed a bug with the HiredisParser that would cause the parser to
get stuck in an endless loop if a specific number of bytes were
delivered from the socket. This fix also increases performance of
parsing large responses from the Redis server.
* Added support for ZREVRANGEBYLEX.
* ConnectionErrors are now raised if Redis refuses a connection due to
the maxclients limit being exceeded.
* max_connections can now be set when instantiating client instances.