addict icon indicating copy to clipboard operation
addict copied to clipboard

The Python Dict that's better than heroin.

Results 24 addict issues
Sort by recently updated
recently updated
newest added

Hi, When I convert a normal dictionary like ```python some_dict = {'a': 1, 'b': 2, 'c': 3} ``` to an attribute dictionary via ```python from addict import Dict attribute_dict =...

Allows body['query.filtered.query.match.description']

Hi, This PR is enhanced version of #119 , which supports nested key with index/slice, such as 'foo[0].bar' and 'foo.bar[0]'. Like mentioned in previous PR, this change is not backward...

This PR makes it so frozen Dict's can be copied and pickled. Addresses #136 ``` >>> from addict import Dict >>> a = Dict().copy() >>> a.foo.bar {} >>> b =...

Consider this example: ``` >>> a = addict.Dict({'test-id': 123}) >>> a.test-id Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for -: 'Dict' and 'builtin_function_or_method'...

This code used to work (up to 2.3.0), but raises an error in 2.4.0: ```python #!/usr/bin/env python3 from addict import Dict a = Dict().copy() a.foo.bar ``` Output: ``` Traceback (most...

Hi, First, I would like to say thanks for this amazing library! Very useful. While developing on some of my projects, I came across a few times into situations where...

For optimization reasons (e.g. numba), sometimes it's preferred to store some branches of a Dict as namedtuples instead of like normal Dict branches.

aka: being able to access a nested item via an xpath-esque syntax ``` >>> from addict import Dict >>> a = Dict() >>> a.b.c = 10 >>> a.b.d = 20...

All the `__parent`, `__key` and `__missing__` implementation details lead to surprising behaviors, like this one : ``` In [1]: from addict import Dict In [2]: d = Dict() In [3]:...