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

Constants§

PYTHON_CONFIGURATION_INPUT_NAMES
Packaging inputs retained by the analyzer and selected by environment staging.

Traits§

PythonImportRootInputs
Structured, selected inputs to the shared Python packaging-root algorithm.

Functions§

collect_python_identifiers
module_code_unit
module_code_unit_from_components
Build a path module without rendering and reparsing its selected components.
module_code_unit_from_name
Hydrate a module unit using its already published identity.
parse_python_file
Build coordinated production Python declarations, source and native facts.
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_import_root_selection_with_inputs
Select canonical placement and preserve whether a manifest declared it.
python_import_root_with_inputs
Select a root using configuration bytes and membership from one snapshot.
python_is_decorated_function_boundary
python_module_components_from_name
Restore a published module identity without probing packaging inputs. Match whole path components so a hidden directory’s leading dot stays inside its segment. The stored rendered name is a value, not source syntax.
python_module_components_with_inputs
Select module components using caller-owned configuration and package membership. Hydration can supply the open SQL read without changing root selection.
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.