A simple library to support working with recursively nested objects.
Primarily built around the nested
class which offers in
, len
, index()
and count()
functionality.
Additionally, the flatten()
function provides the ability to configure behaviour for strings etc.
pip install recurtools
from recurtools import nested
from recurtools import flatten
For full details see the docs on github.io