Redis-dict

Latest version: v3.2.1

Safety actively analyzes 707375 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

3.2.1

This release includes dependency updates and configuration fixes. The following changes have been made:

**Python Build Version**: Pinned to Python 3.11 to resolve an ImportError with the cryptography package in Python 3.13.

**Cryptography Update**: Development dependencies have been updated to use cryptography 44.0.1.

**Code Coverage Accuracy**: Stopped CodeCov from checking if tests are tested by tests. This change provides more accurate representation of the project's test coverage.

85 86 88

3.2.0

This release focused on adding Python dictionary behavior to Redis Dict. Two missing features have been addressed:

1. **Raise-on-Delete Flag:** Redis Dict will now have a new boolean flag, `raise_key_error_delete`. When set to `True`, Redis Dict will raise a `KeyError` when attempting to delete a key that has already been deleted. While this behavior might not be always ideal in distributed computing scenarios it is how python dictionary behaves. Thanks to Pydes-boop for raising the issue and providing the solution.
2. **Python Redis Dict:** This new Python Redis Dict aims to be a direct drop-in replacement for a standard Python dictionary. It will support insertion order and future updates will include typed keys and nested support for complete compatibility. enzoBrum for analysing the issue and bringing up the issue

51
46

3.1.2

Added security check through the library [bandit](https://github.com/PyCQA/bandit) during CI, And build process.

3.1.1

Fixed links in the readme, And added initial action flow of deploying with actions.


Special thanks Mark90 for finding and reporting the the issue.

3.1.0

- Comprehensive documentation improvements
- Sphinx integration

Redis Compatibility
- Now requires Redis 6.2.0+ to fix race conditions in `setdefault` and `pop` methods
- Implemented atomic operations for improved data consistency

Closed Issues
- 68: Modern conventions and best practices
- 60: Race condition under certain circumstances `setdefault`, `pop`

Contributors:
Special thanks to these contributors:

shughes-uk - Bug identification and reporting
jvllmr - Feature implementation

---
This release represents a major modernization effort, bringing RedisDict up to current Python Standards

3.0.0

Major Changes

Project Structure
- Reorganised project structure
- Reorganized test suite into subdirectories (150+ tests)
- Added dedicated scripts directory for CI/CD and documentation
- Implemented modern project configuration with `pyproject.toml`

Python Modernization
- Removed Python 2.x legacy code, including `iter` methods
- Added Python 3.9+ dictionary union operator support (`dict | other_dict`)
- Implemented all standard `dict` methods for full compatibility

Type System Improvements
- Added `py.typed` file for improved type checker compliance .[PEP 561](https://peps.python.org/pep-0561/)
- Added mypy configuration with `pyproject.toml`
- Added nested type support through JSON encoding/decoding
- Exposed JSON encoders/decoders for custom type handling

Quality
- Enhanced docstring consistency for upcoming Sphinx documentation
- Added examples in Readme for nested types, and JSON encoders/decoders
- Updated the links in Readme for docs/tests
- Added pypi badge to Readme

Breaking Changes
- Removed Python 2.x legacy methods
- Minimum Redis version requirement: 6.2.0
- Changed iteration behavior of methods `items`, `values`, `keys` to align with Python 3.x standards

Page 1 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.