Python API

nestedtext.dumps(obj, *[, width, sort_keys, …])

Recursively convert object to NestedText string.

nestedtext.dump(obj, f, **kwargs)

Write the NestedText representation of the given object to the given file.

nestedtext.loads(content[, top, source, on_dup])

Loads NestedText from string.

nestedtext.load([f, top, on_dup])

Loads NestedText from file or stream.

nestedtext.NestedTextError(*args, **kwargs)

The load and dump functions all raise NestedTextError when they discover an error.