printer#

This module is responsible for converting data represented as a tree of model classes. It exposes 3 main functions that should cover most of user’s needs.

print(data)#

Print model tree as an ndf code to stdout.

Parameters:

data (CellValue) – Model tree.

format(data, handle)#

Wtire model tree as an ndf code to a given IO writer.

Parameters:
  • data (CellValue) – Model tree.

  • handle (TextIO) – String IO handle to write into.

string(data)#

Return model tree represented as a formatted ndf code in a string.

Parameters:

data (CellValue) – Model tree.