Readonly
nameThe name of the module
Optional
Readonly
docstringThe docstring for the module
Adds an import statement to the module.
The import statement to add
Adds a global code block to the module.
The code block to add
Writes the module and its contents to the writer.
The writer to write to
Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.
The string representation of the AST node
Represents a Python module in the AST. This class is the top-level container for Python code, including imports, functions, classes, and global code.