Run a sample Workflow

Start a local Temporal service:

temporal server start-dev

In a new terminal, clone the repository for this sample project:

git clone https://github.com/temporalio/money-transfer-project-template-python

Change directories to the sample project

cd money-transfer-project-template-python

Create a virtual environment and activate it. On macOS and Linux, run these commands:

python3 -m venv env

source env/bin/activate

On Windows, run these commands:

python -m venv env

env\Scripts\activate

With the virtual environment configured, install the Temporal SDK:

python -m pip install temporalio

Run the worker:

python run_worker.py

In another window, activate the virtual environment. On macOS or Linux, run this command:

source env/bin/activate

On Windows, run this command:

env\Scripts\activate

Run the workflow:

python run_workflow.py