Skip to content

pysparky_pipeline.dataframe

Driver-side execution of graph functions that return native DataFrames.

Classes

NameDescription
DataFramePipelineExecute 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: DependencyGraph

Return 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#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def describe() -> str

Return a concise, deterministic summary without printing it.

execution_ordermethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def execution_order(outputs: Iterable[str] | None = None) -> tuple[str, ...]

Return the deterministic order for the selected dependency closure.

lineagemethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def lineage(name: str) -> dict[str, object]

Describe declared upstream nodes and inputs for one output node.

required_inputsmethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def required_inputs(outputs: Iterable[str] | None = None) -> tuple[str, ...]

Return required external inputs for all or selected output nodes.

to_dictmethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def to_dict() -> dict[str, object]

Return the versioned, language-independent graph representation.

to_jsonmethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def to_json() -> str

Serialize to_dict using stable standard-library JSON.

to_mermaidmethod#

Inherited from pysparky_pipeline.inspection._PipelineInspectionView source
def to_mermaid() -> str

Return deterministic Mermaid flowchart source for declared edges.