v0.2.0
π Release v0.2.0: Deep Access Functions
β¨ What's New
This release introduces two powerful new functions for working with nested dictionaries:
π get_deep() - Smart Value Retrieval
- Exact matching:
get_deep(data, "user.profile.name") - Suffix matching:
get_deep(data, "name")finds any key ending with.name - Case-insensitive option:
case_sensitive=Falseparameter - Default values: Built-in fallback support
βοΈ set_deep() - Immutable Value Setting
- Dot notation:
set_deep(data, "user.profile.name", "Alice") - Auto-nesting: Creates intermediate dictionaries as needed
- Immutable: Returns new dict without modifying original
- JSON-safe: Maintains serializable data structures [[memory:3975571]]
π¦ Package Improvements
- π·οΈ Version management: Added
VERSIONfile and dynamic version loading - π Better discoverability: Added repository and PyPI links to README and pyproject.toml
- π Enhanced docs: Updated usage examples and API reference
- β Comprehensive tests: Full test coverage including edge cases
π Files Changed
dictpress/__init__.py- Core functionality additionsREADME.md- Updated documentation and examplespyproject.toml- Version bump and project URLstests/test_readme_usages.py- Extensive test coveragedictpress/VERSION- Version file for dynamic loading
π― Migration
Fully backward compatible! Existing code continues to work unchanged. New functions are available immediately:
from dictpress import get_deep, set_deep # New functions
from dictpress import flatten_dict, unflatten_dict, merge # Existing functionsWhat's Changed
New Contributors
Full Changelog: v0.1.0...v0.2.0