On Tue, 3 Sep 2019 at 13:38, None via Python-ideas
<
python-ideas@python.org> wrote:
I really believe that a nested key retrieval mechanism should be a first-class offering of the standard library. It is extremely common in the Python ecosystem to find developers working with data sets comprised of nested data structures. Serializing and deserializing JSON is one of the most common functions developers do today, too. As this is a common task being performed by hundreds of thousands of developers, wouldn't it better if we had one canonical way to do it (in the spirit of PEP-20 and having one obvious way to do things)?
There's a PyPI package, glom (
https://pypi.org/project/glom/) that
appears to do what you are after, as well as a lot more. Maybe that is
something you should look into.