phileas.iteration#

This package contains the trees used for data iteration.

The DataTree stores an actual data point, which consists of nested dict and list objects, with DataLiteral leaves.

Then, the IterationTree provides a framework to build complex searches over data trees. Its leaves consist of literal values, or data iterators. Those leaves can simply be iterated over, but they can also be used to build more complex iteration trees.

First, they can be combined with IterationMethod nodes, which provide a way to iterate over multiple data sources. Then, Transform nodes can be inserted in those trees in order to modify the data trees generated while iterating.

Modules

base

This module contains the definition of the base type and classes used for iteration (data tree, pseudo data tree and iteration tree).

leaf

This module defines abstract and concrete iteration leaves, which are the actual data sources of an iteration tree, alongside their iterators.

node

This module defines abstract and concrete iteration tree nodes, which are iteration methods and transform nodes, as well as their iterators.

random

utility

This module defines utility functions related to iteration.