mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-25 04:48:44 -05:00
00510869d2
* wip improved signatures * gen * api tokens page * codeblock * no bg on button * alerter empty state * layout consistency, sidebar fixes * sidebar tool tips * layout improvements * spacing * not active top level settings * no analytics opt out oss * layout consistency * pagination consistency * only show chat if enabled * refresh list * fundamental responsive fixes * navbar close on interaction * update * lint * fix browser navigation * lint * layout * clean console * simplified refetch * finally bash breadcrumbs hopefully * lint * no sync * build * invalidate * add workflow run id to task timing * fix parent breadcrumb * add fallback runid * waterfall fixes * lint * revert * optional workflow run id * remove unused prop * lint * fix build * fix: dont render trigger unless needed * variable size sheet * minor tweaks * global sidebar * sheet scrolling * header consistency * expose classname * selection state * revert layout * tmp pulse indicator * fix: minimap * clear breadcrumbs on exit * error data might not be json * interactive dag * expand row on click * bug fixes * add retry counts to task summary * wip * feat: retry count and improved logger * task pre * update example * gen * add retry count to task event * sheet with attempt state * wip with attempt payloads * event log navigation * wip dag sidebar * rm debug lines * fix * fix 404 * fix: latest default * optimizations * fix dag nav * layout * lint * fix * address reveiw * use shad button * add fixme * review * lint * fix panic
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:
- Python v3.10 or higher
- Poetry for dependency management
Setup
- Clone the repository:
git clone https://github.com/hatchet-dev/hatchet-python-quickstart.git
cd hatchet-python-quickstart
- Set the required environment variable
HATCHET_CLIENT_TOKENcreated in the Getting Started Guide.
export HATCHET_CLIENT_TOKEN=<token>
Note: If you're self hosting you may need to set
HATCHET_CLIENT_TLS_STRATEGY=noneto disable TLS
- Install the project dependencies:
poetry install
Running an example
- Start a Hatchet worker by running the following command:
poetry run python src/worker.py
- 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.