langchain_community.tools.e2b_data_analysis.unparse.Unparser¶

class langchain_community.tools.e2b_data_analysis.unparse.Unparser(tree, file=sys.stdout)[source]¶

Traverse an AST and output source code for the abstract syntax; original formatting is disregarded.

Print the source for tree to file.

Attributes

binop

boolops

cmpops

unop

Methods

__init__(tree[, file])

Unparser(tree, file=sys.stdout) -> None.

dispatch(tree)

Dispatcher function, dispatching tree type T to method _T.

enter()

Print ':', and increase the indentation.

fill([text])

Indent a piece of text, according to the current indentation level

leave()

Decrease the indentation level.

write(text)

Append a piece of text to the current line.

__init__(tree, file=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)[source]¶

Unparser(tree, file=sys.stdout) -> None. Print the source for tree to file.

dispatch(tree)[source]¶

Dispatcher function, dispatching tree type T to method _T.

enter()[source]¶

Print ‘:’, and increase the indentation.

fill(text='')[source]¶

Indent a piece of text, according to the current indentation level

leave()[source]¶

Decrease the indentation level.

write(text)[source]¶

Append a piece of text to the current line.