Prefect Python SDK

The Prefect Python SDK is used to build, test, and execute workflows against the Prefect API. It provides decorators such as @flow and @task for defining workflows, along with programmatic interfaces for deployments, scheduling, state management, concurrency, caching, and retries. The SDK requires Python 3.10 or higher and includes a PrefectClient class for direct interaction with the REST API.

API entry from apis.yml

apis.yml Raw ↑
aid: prefect:prefect-python-sdk
name: Prefect Python SDK
description: The Prefect Python SDK is used to build, test, and execute workflows against the Prefect
  API. It provides decorators such as @flow and @task for defining workflows, along with programmatic
  interfaces for deployments, scheduling, state management, concurrency, caching, and retries. The SDK
  requires Python 3.10 or higher and includes a PrefectClient class for direct interaction with the REST
  API.
humanURL: https://docs.prefect.io/v3/api-ref/python
tags:
- Orchestration
- Python
- SDK
- Workflows
properties:
- type: Documentation
  url: https://docs.prefect.io/v3/api-ref/python
- type: Getting Started
  url: https://docs.prefect.io/v3/get-started/quickstart
- type: GitHub Repository
  url: https://github.com/PrefectHQ/prefect