PythonModuleSource
¶
This type represents Python source modules, agnostic of location.
Instances can be constructed via PythonExecutable.make_python_module_source() or by calling methods that emit Python resources.
Attributes¶
The following sections describe the attributes available on each instance.
name
¶
(string
)
Fully qualified name of the module. e.g. foo.bar
.
source
¶
(string
)
The Python source code for this module.
is_package
¶
(bool
)
Whether this module is also a Python package (or sub-package).
is_stdlib
¶
(bool
)
Whether this module is part of the Python standard library (part of the Python distribution).
add_*
¶
(various)