The following is a template repo to get started with the Hatchet Python SDK. It includes instructions for getting started with Hatchet cloud along with a locally running instance of Hatchet.
Navigate to your settings tab in the Hatchet dashboard. You should see a section called "API Keys". Click "Create API Key", input a name for the key and copy the key. Then copy the environment variable:
HATCHET_CLIENT_TOKEN="<token>"
You will need this in the examples.
Next steps: see Running Workflows to trigger your first Hatchet workflow.
Run the following command to start the Hatchet instance:
docker compose up
This will start a Hatchet instance on port 8080
. You should be able to navigate to localhost:8080 and use the following credentials to log in:
Email: admin@example.com
Password: Admin123!!
Next, navigate to your settings tab in the Hatchet dashboard. You should see a section called "API Keys". Click "Create API Key", input a name for the key and copy the key. Then copy the environment variable:
HATCHET_CLIENT_TOKEN="<token>"
You will need this in the examples.
Next steps: see Running Workflows to trigger your first Hatchet workflow.
This repository includes two example projects:
- fast-api and react: a full stack demo OpenAi chat application
- simple-examples: stand-alone workers showing off core functionality of hatchet
To get started, navigate to the respective example directories for further README instructions and refer to the Documentation