API reference
python:astx:astx.packages.Package
class Package
Package(name: str = 'main', modules: list[Module] = [], packages: list[Package] = [], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/packages.py:138
AST class for Package.
Attributes
-
name — Type: str
-
modules — Type: list[Module]
-
packages — Type: list[Package]
Methods
-
__init__ — Initialize the AST instance.
-
__str__ — Return the string representation of the object.
-
get_struct — Return the AST structure of the object.