jfjlaros / dict-obj

Object interface for a Python dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object interface for a Python dictionary

https://readthedocs.org/projects/dict-obj/badge/?version=latest

This package provides a dict-like object that allows keys to be accessed via member variables. Both nested dictionaries as well as lists are supported.

Example:

>>> from dict_obj import obj
>>>
>>> d = obj({'a': 1, 'b': {'c': 1}})
>>> d.b.c
1
>>> d['b'].c
1

Please see ReadTheDocs for the latest documentation.

About

Object interface for a Python dictionary

License:MIT License


Languages

Language:Python 100.0%