Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 561 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 561 Bytes

dotdict-python-extension

Extension to the builtin dict object that allows dot-notation access to the contents of Python dict objects. This is my own original code, which is simpler, more general, and much more robust than similar efforts that I found on the web.

The missing method allows chaining creation of nested DotDicts: a = DotDict() ; a.foo.bar = 'content'

Limitation: Expressing keys as attributes limits keys to valid Python identifiers.

27 September 2019: New DotStore class adds simple persistence to a JSON file.