File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Python Workflows is now open beta
3+ description : Python Workflows is now open beta - build Workflows in Python.
4+ products :
5+ - workflows
6+ - workers
7+ date : 2025-08-22
8+ ---
9+
10+ import { Render , PackageManagers , TypeScriptExample } from " ~/components"
11+
12+ [ Python Workflows] ( /workflows/python/ ) is now in open beta, and available to any developer a free or paid Workers plan.
13+
14+ Workflow entrypoints can now be declared using Python. Here's an example of how to now define a Python Workflow:
15+
16+ ``` python
17+ from workers import Response, WorkflowEntrypoint
18+
19+ class PythonWorkflowStarter (WorkflowEntrypoint ):
20+ async def run (self , event , step ):
21+ @step.do (" my first step" )
22+ async def my_first_step ():
23+ # do some work
24+ return " Hello Python!"
25+
26+ await my_first_step()
27+
28+ await step.sleep(" my-sleep-step" , " 10 seconds" )
29+
30+ @step.do (" my second step" )
31+ async def my_second_step ():
32+ # do some more work
33+ return " Hello again!"
34+
35+ await my_second_step()
36+
37+ async def fetch (request , env ):
38+ await env.MY_WORKFLOW .create()
39+ return Response(" Hello Workflow creation!" )
40+ ```
41+
42+ More information:
43+
44+ - Python Workflows [ get started guide] ( /workflows/python/ )
45+ - Learn the [ Python Workflows API] ( /workflows/python/python-workers-api/ ) .
46+ - [ Interact with a Python Workflow] ( /workflows/python/bindings/ ) via your Workers apps.
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ link: "/workflows/reference/changelog/"
33productName : Workflows
44productLink : " /workflows/"
55entries :
6+ - publish_date : " 2025-08-22"
7+ title : " Python Workflows is now open beta"
8+ description : |-
9+ [Python Workflows](/workflows/python/) is now in open beta, and available to any developer a free or paid Workers plan.
10+
11+ More information available in the [changelog](/changelog/2025-08-22-workflows-python-beta/).
612 - publish_date : " 2025-05-07"
713 title : " Search for specific Workflows"
814 description : |-
You can’t perform that action at this time.
0 commit comments