docs/v3/api-ref/python/prefect-deployments-steps-core.mdx
prefect.deployments.steps.coreCore primitives for running Prefect deployment steps.
Deployment steps are YAML representations of Python functions along with their inputs.
Whenever a step is run, the following actions are taken:
prefect deploy documentation for more details)requires keyword is used to install the necessary packagesrun_step <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/deployments/steps/core.py#L108" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>run_step(step: dict[str, Any], upstream_outputs: dict[str, Any] | None = None) -> dict[str, Any]
Runs a step, returns the step's output.
Steps are assumed to be in the format {"importable.func.name": {"kwarg1": "value1", ...}}.
The 'id and 'requires' keywords are reserved for specific purposes and will be removed from the inputs before passing to the step function:
This keyword is used to specify packages that should be installed before running the step.
run_steps <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/deployments/steps/core.py#L146" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>run_steps(steps: list[dict[str, Any]], upstream_outputs: dict[str, Any] | None = None, print_function: Any = print, deployment: Any | None = None, flow_run: Any | None = None, logger: Any | None = None) -> dict[str, Any]
StepExecutionError <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/deployments/steps/core.py#L43" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>Raised when a step fails to execute.