Skip to main content

Module declarations

Module declarations 

Source

Structs§

PythonVisitor
Scope
SetuptoolsLiteralArgument
One supported setuptools keyword, with its original AST range. Unknown expressions remain None; this function never executes the script.

Enums§

PythonParameterSplat
The identifier node that names one parameter’s binding.
SetuptoolsLiteralValue

Functions§

collect_python_identifiers
module_code_unit
parse_python_file
Build production Python declarations and source facts without native facts. Native publication starts with Python’s first production native reader.
parse_python_file_with_native_facts
Build coordinated Python source and native facts for producer validation. Production callers keep using parse_python_file until the reader switch.
parse_python_tree
py_node_text
Verbatim source text spanned by node, or "" when the byte range is not a valid str boundary (adversarial or partially-parsed input).
python_base_origin_node
The node whose text names a base class: the value a subscripted base applies its type arguments to, or the base expression itself.
python_declared_import_root
The root a packaging manifest declares for this file, whether that root is the project root itself or a directory below it.
python_expanded_comment_start
python_first_parameter_name
The name a callable binds its first parameter to, which for a method is the receiver every self.x and setattr(self, ...) in its body names.
python_function_has_decorator
python_function_has_property_decorator
Whether a function’s decorator syntax makes it a Python property descriptor.
python_import_root
The directory file’s path-derived Python module name is relative to: the analyzer’s stand-in for the sys.path entry an absolute import of that module would be resolved against.
python_is_decorated_function_boundary
python_module_fq
Build the structured module-path prefix for a Python declaration.
python_module_name
python_parameter_label_node
python_parameter_splat
python_project_module_components
The module-name components file’s path yields when it is named from the project root, which is the longest name the workspace can give it: dependency/core/lib/common/__init__.py is ["dependency", "core", "lib", "common"].
setuptools_setup_py_literal_arguments
setuptools_setup_py_python_requires
Read the python_requires specifier a legacy setup.py declares.
setuptools_setup_py_python_requires_from_source
Snapshot-fed counterpart of the legacy declaration reader.