- Notifications
You must be signed in to change notification settings - Fork9
hatchet-dev/hatchet-python-quickstart
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an example project demonstrating how to use Hatchet with Python. For detailed setup instructions, see theHatchet Setup Guide.
Before running this project, make sure you have the following:
- Python v3.10 or higher
- Poetry for dependency management
- Clone the repository:
git clone https://github.com/hatchet-dev/hatchet-python-quickstart.gitcd hatchet-python-quickstart- Set the required environment variable
HATCHET_CLIENT_TOKENcreated in theGetting 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
- 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.
About
Quickstart for Hatchet using the Python SDK with examples for common frameworks
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.