Diwrappers

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 3

0.5.0

Breaking Changes
- Reduced minimum Python version requirement from 3.12 to 3.10
- Removed Python 3.12-specific type annotations for better backward compatibility
- Refactored type hints to support Python 3.10+

Added Features
- Improved error handling for async contexts
- Added comprehensive test coverage (>90%)
- Better cleanup handling in async contextual dependencies
- Enhanced support for nested dependency contexts

Fixed
- Fixed cleanup in async contextual dependencies when exceptions occur
- Improved handling of dependency leaks in complex data structures
- Better error messages for missing contexts

Developer Experience
- Added more comprehensive test suite
- Improved documentation and examples
- Better type checking support across Python versions

0.4.3

**Full Changelog**: https://github.com/RuiFilipeCampos/diwrappers/compare/v0.4.2...v0.4.3

0.4.2

**Full Changelog**: https://github.com/RuiFilipeCampos/diwrappers/compare/v0.4.1...v0.4.2

0.4.1

**Full Changelog**: https://github.com/RuiFilipeCampos/diwrappers/compare/v0.4.0...v0.4.1

- fix post-release QA

0.4.0

Changelog

Features
- Added async contextual dependency support
- Added data module for improved data handling and validation
- Added example project demonstrating dependency injection patterns
- Added comprehensive testing framework using doctest command
- Added exposure of all exceptions through public API

Fixes

- Pinned version of setup-poetry action to `15821dc8a61bc630db542ae4baf6a7c19a994844`
- Pinned version of security scan action to `1c57367e29d11f99ae56571e49f95f1a1991945e`

Testing & Quality Assurance
- Added tests for new functionality
- Added doctest command to QA workflow
- Increased type checker strictness for better code quality
- Enhanced testing infrastructure

**Full Changelog**: https://github.com/RuiFilipeCampos/diwrappers/compare/v0.3.0...v0.4.0

0.3.0

**Full Changelog**: https://github.com/RuiFilipeCampos/diwrappers/compare/v0.2.12...v0.3.0

Added
- New `contextual_dependency` decorator for managing dependencies with proper resource lifecycle management
- Support for context-managed dependencies with `ensure()` wrapper
- Improved type safety with Python type hints and generics

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.