# pysparky_pipeline.node

*module*

Immutable metadata for a function registered in a dependency graph.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L1-L1)

## pysparky_pipeline.node.Node

*class* · *dataclass*

```python
class Node
```

A callable and its resolved function-parameter metadata.

The node metadata is immutable. The callable itself remains the original
caller-owned object and is never invoked during graph construction.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L26-L112)

### pysparky_pipeline.node.Node.defaulted_parameters

*attribute* · *instance attribute*

```python
defaulted_parameters: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L41-L41)

### pysparky_pipeline.node.Node.dependencies

*attribute* · *instance attribute*

```python
dependencies: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L37-L37)

### pysparky_pipeline.node.Node.external_inputs

*attribute* · *instance attribute*

```python
external_inputs: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L38-L38)

### pysparky_pipeline.node.Node.function

*attribute* · *class attribute* · *instance attribute*

```python
function: Callable[..., object] = field(repr=False, compare=False)
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L35-L35)

### pysparky_pipeline.node.Node.name

*attribute* · *instance attribute*

```python
name: str
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L34-L34)

### pysparky_pipeline.node.Node.optional_inputs

*attribute* · *instance attribute*

```python
optional_inputs: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L40-L40)

### pysparky_pipeline.node.Node.parameters

*attribute* · *instance attribute*

```python
parameters: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L36-L36)

### pysparky_pipeline.node.Node.required_inputs

*attribute* · *instance attribute*

```python
required_inputs: tuple[str, ...]
```

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L39-L39)

### pysparky_pipeline.node.Node.from_function

*method* · *classmethod*

```python
def from_function(function: Callable[..., object], registered_names: Collection[str]) -> Node
```

Inspect a callable and split parameters into dependencies/inputs.

[View source](https://github.com/PySparky/pysparky-pipeline/blob/4a64f789246a4be5067124ee05e3c2d06ae49631/src/pysparky_pipeline/node.py#L43-L112)
