mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-01 06:11:02 -06:00
* feat: Adds a generated REST API client and exposes workflow methods for programmatic usage
15 lines
349 B
Python
15 lines
349 B
Python
from hatchet_sdk import Hatchet, WorkflowList
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
hatchet = Hatchet(debug=True)
|
|
|
|
list : WorkflowList = hatchet.client.rest().workflow_list()
|
|
|
|
for workflow in list.rows:
|
|
print(workflow.name)
|
|
print(workflow.metadata.id)
|
|
print(workflow.metadata.created_at)
|
|
print(workflow.metadata.updated_at)
|