sc_nested#

Functions for working on nested (multi-level) dictionaries and objects.

Highlights:

Classes

IterObj

Object iteration manager

Equal

Functions

getnested

Get the value for the given list of keys

setnested

Set the value for the given list of keys

makenested

Little functions to get and set data from nested dictionaries.

iternested

Return a list of all the twigs in the current dictionary

iterobj

Iterate over an object and apply a function to each node (item with or without children).

mergenested

Merge different nested dictionaries

flattendict

Flatten nested dictionary

nestedloop

Zip list of lists in order

search

Find a key/attribute or value within a list, dictionary or object.

equal

Compare equality between two arbitrary objects