Configure a Python Pipeline Node
A convenience wrapper around node() with
runtime = "Python". Used directly within a
pipeline { ... } block to execute Python code.
command (Any): (Optional) The
expression to evaluate inside the Python node (must be enclosed in
<{ ... }> blocks). Mutually exclusive with
script.
script (String): (Optional) Path to
an external .py file to execute as the node body. Mutually
exclusive with command. Sets the runtime to
Python automatically.
serializer (Strategy): (Optional)
Serializer strategy: a built-in (default,
^csv, ^json, ^ipc,
^parquet, ^pmml, ^onnx,
^bin, ^text, ^tlang) or a
strategy dict [format: ^name, ...snippets] (see
docs/serializers.md). Bare function names are rejected.
Default is default.
deserializer (Strategy): (Optional)
Deserializer strategy: same closed set as serializer.
Default is default.
functions (String | List[String]):
(Optional) Python files to source before execution.
include (String | List[String]):
(Optional) Additional files for the sandbox.
noop (Bool): (Optional) Whether to
skip execution and generate a stub. Default = false.
flake (String): (Optional) A Nix
flake reference (e.g. “github:b-rodrigues/tlang”) to use for this node’s
build environment. Default = NA (use project flake).
A pipeline node configuration object. Must be used as a named binding
inside a pipeline { ... } block; the Python code is
executed by the pipeline builder, not immediately.