flatdict icon indicating copy to clipboard operation
flatdict copied to clipboard

Python module for interacting with nested dicts as a single level dict with delimited keys.

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

```py >>> import flatdict >>> flatdict.FlatterDict({'l': [{'b':'c'}, 'd']}).as_dict() python3.7/site-packages/flatdict.py in _child_as_list(self, pk, ck): 474 AttributeError: 'str' object has no attribute 'original_type' >>> flatdict.__version__ '4.0.1' ``` The error is caused by...

This is also related to issue #43 but in the case where our nested dictionary has empty lists `[]` In this case, not only do we have the empty ``,...

```print(FlatDict({'a': {}}).as_dict())``` should produce ```{'a': {}}``` but instead produces ```{'a': "}``` This change fixes the functionality to print the former.

... or possibly any OrderedDict. ```collections.OrderedDict``` provides one option of protecting JSON loads that contain duplicate keys, via the ```object_pairs_hook=OrderedDict``` modifier. The consequent process of parsing would be much easier...

Original function takes 3 seconds to run new test_as_dict_perf() test. Updated code has performance inline with flatterdict as_dict implementation. flatterdict.as_dict code was used to model fix in flatdict.as_dict tested: flake8...

Tests should be included in source distribution. This is allows for test to be fund and run with the Gentoo Linux package manager.

version info: ```console $ python --version Python 3.12.1 $ pip show flatdict Name: flatdict Version: 4.0.1 Summary: Python module for interacting with nested dicts as a single level dict with...