/nddict

Custom dictionary types to handle nested scenarios.

Primary LanguagePythonMIT LicenseMIT

Binder CircleCI Documentation Status License

nddict - A nested dictionary class with a self-replicating default factory

Minimal example:

>>> from nddict import DeepDict
>>> d = {'a' : {'aa' : {'aaa' : 0}}, 'b' : 1, 'c' : {'cc' : 2}}
>>> dd = DeepDict(d)
>>> list(dd.values(deep=True))
[0, 1, 2]

Documentation and Issues

Click here to read the documentation.

There are no known issues.

Testing

To run all tests, open up a console in the root directory of the project and type the following

>>> python -m unittest

License

This package is licensed under the MIT license.