Safely get nested dict value by dot notation key.
Project description
dotty_dict
Safely get nested dict value by dot notation key.
Dotty dict-like object allow to access deeply nested keys using dot notation. Create Dotty from dict or other dict-like object to use magic of Dotty.
Free software: MIT license
Documentation: https://dotty-dict.readthedocs.io.
Features
Accessing deeply nested key using dot notation
Returns None if key does not exist instead of raising KeyError exception
Assigning to deeply nested existing or not yet existing key
Get deeply nested value or provided default value with .get() method
TODO
Escape dot sign to allow accessing keys with dot in it
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2017-05-03)
First release on PyPI.