Skip to content

Eirikur/dotdict-python-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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.

About

Extension to the builtin dict object that allows classical object-oriented dot access to dict content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages