Python Workflows SDK
Workflow entrypoints can be declared using Python. To achieve this, you can export a WorkflowEntrypoint that runs on the Cloudflare Workers platform.
Refer to Python Workers for more information about Python on the Workers runtime.
The main entrypoint for a Python workflow is the WorkflowEntrypoint class. Your workflow logic should exist inside the run handler.
from workers import WorkflowEntrypoint
class MyWorkflow(WorkflowEntrypoint): async def run(self, event, step): # steps hereTo run a Python Workflow locally, you use Wrangler, the CLI for Cloudflare Workers:
npx wrangler@latest devTo deploy a Python Workflow to Cloudflare, run wrangler deploy:
npx wrangler@latest deployWas this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark