pysparky_pipeline.dataframe
Driver-side execution of graph functions that return native DataFrames.
Classes
| Name | Description |
|---|---|
DataFramePipeline | Execute selected graph functions that return PySpark DataFrames. |
DataFramePipelineclass#
class DataFramePipeline(functions: Iterable[Callable[..., object]])Bases: _PipelineInspection
Execute selected graph functions that return PySpark DataFrames.
Registered functions are called on the driver in deterministic topological order. The pipeline itself does not schedule Spark jobs, create sessions, perform actions, or cache intermediate DataFrames.
graphproperty#
graph: DependencyGraphReturn the immutable dependency graph used by this pipeline.
executemethod#
def execute(outputs: Iterable[str] | None = None, inputs: Mapping[str, object] | None = None) -> dict[str, DataFrame]Execute the requested outputs and return their DataFrames by name.
If outputs is omitted, all nodes are returned in deterministic
topological order. An explicit selection runs only those nodes and
their registered dependencies, returning the requested nodes in the
order supplied. inputs supplies values for unresolved function
parameters; Python defaults apply when no value is supplied.
Inherited from pysparky_pipeline.inspection._PipelineInspection
describemethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef describe() -> strReturn a concise, deterministic summary without printing it.
execution_ordermethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef execution_order(outputs: Iterable[str] | None = None) -> tuple[str, ...]Return the deterministic order for the selected dependency closure.
lineagemethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef lineage(name: str) -> dict[str, object]Describe declared upstream nodes and inputs for one output node.
required_inputsmethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef required_inputs(outputs: Iterable[str] | None = None) -> tuple[str, ...]Return required external inputs for all or selected output nodes.
to_dictmethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef to_dict() -> dict[str, object]Return the versioned, language-independent graph representation.
to_jsonmethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef to_json() -> strSerialize to_dict using stable standard-library JSON.
to_mermaidmethod#
pysparky_pipeline.inspection._PipelineInspectionView sourcedef to_mermaid() -> strReturn deterministic Mermaid flowchart source for declared edges.