Metadata-Version: 2.1
Name: dottree
Version: 0.1.2
Summary: 
Home-page: https://github.com/gitbackspacer/dottree
License: MIT
Keywords: markdown,tree,dict
Author: Jitender
Author-email: gitbackspacer@gmail.com
Requires-Python: >=2.7,<3.0
Classifier: Environment :: Console
Classifier: Framework :: Flake8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Documentation
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Project-URL: Repository, https://github.com/gitbackspacer/dottree
Description-Content-Type: text/markdown

# dottree

An "Enhanced defaultdict", I have been using this construct in my code many time ends up writing the biolerplate getter setter many times. So packed into a module to share with you all.


# How to install

- Use pip to install 
- tested in Python2


```bash 
pip install dottree 
```

# Quick check

```python 

'''
How to use:
- use like a dict
- use like an object 
- Go as deep you need

'''

from dottree import dotree as dot

d = dot()
d.M.J = 7
assert  d.M.J  == 7
assert  d['M']['J']  == 7

# downgrade to a dict any time
print dict(d.M) # {'J': 7}

```

