AttrDict icon indicating copy to clipboard operation
AttrDict copied to clipboard

A dictionary that allows attribute-style access.

Results 17 AttrDict issues
Sort by recently updated
recently updated
newest added

The `recursive` parameter shouldn't modify the contents of the object. ``` >>> attrdict.AttrDict({'list': [{'value': 1}, {'value': 2}]}, recursive=False) AttrDict({'list': [{'value': 1}, {'value': 2}], 'recursive': False}) ``` Let's say I have...

As the title states, just a list of regular dicts instead of AttrDicts. Here is a workaround. ```python def deep_attrdict(d: dict) -> AttrDict: """Uses recursion to dive deep into the...

just wanted to check in on whether the maintainers of this library are present and willing to accept pull requests for the following - Expand testing to python 3.5 -...

I regularly use AttrDict to quickly convert JSON objects into what looks like native objects. When getting the repr, it's nicer to see the subclassed name rather than `AttrDict`. E.g....

``` >>> attr = AttrDict({'foo': {"bar": "molotov"}}) >>> attr.foo AttrDict({'bar': 'molotov'}) >>> attr.foo.bar = 'update molotov' >>> attr AttrDict({'foo': {'bar': 'molotov'}}) >>> ```

``` from attrdict import AttrMap as mp m=mp({"a":[1,2,3]}) m.a ``` return (1,2,3) This sould not happen, right? Would be really good to fix this :-) Thanks :+1:

The `mixins.Attr._valid_name` method [only allows ASCII attributes](https://github.com/bcj/AttrDict/blob/master/attrdict/mixins.py#L151). In python 3, unicode attributes are allowed.

Would be nice to maintain order. Could be an option, or just always inherit from `OrderedDict`.