Files
hatchet/sdks/python/examples/quickstart
Gabe Ruttner 8796d0ab7d chore: update dependencies for dependabot alerts (#3119)
* chore: update dependencies for dependabot alerts

* chore: bump main deps instead

* release: bump versions

* chore: bump gem

* chore: update hatchet-sdk to version 0.1.1 in Gemfile.lock
2026-02-28 06:48:15 -08:00
..

Hatchet Python Quickstart

This is an example project demonstrating how to use Hatchet with Python. For detailed setup instructions, see the Hatchet Setup Guide.

Prerequisites

Before running this project, make sure you have the following:

  1. Python v3.10 or higher
  2. Poetry for dependency management

Setup

  1. Clone the repository:
git clone https://github.com/hatchet-dev/hatchet-python-quickstart.git
cd hatchet-python-quickstart
  1. Set the required environment variable HATCHET_CLIENT_TOKEN created in the Getting Started Guide.

For most users, this token is the only required configuration — no server URL or additional settings are needed.

export HATCHET_CLIENT_TOKEN=<token>

Note: If you're self hosting you may need to set HATCHET_CLIENT_TLS_STRATEGY=none to disable TLS

  1. Install the project dependencies:
poetry install

Running an example

  1. Start a Hatchet worker by running the following command:
poetry run python src/worker.py
  1. To run the example workflow, open a new terminal and run the following command:
poetry run python src/run.py

This will trigger the workflow on the worker running in the first terminal and print the output to the the second terminal.