feat: python rest api (#223)

* feat: Adds a generated REST API client and exposes workflow methods for programmatic usage
This commit is contained in:
abelanger5
2024-03-02 17:33:20 -08:00
committed by GitHub
parent 713b8c95c6
commit d376b953aa
135 changed files with 25349 additions and 29 deletions

View File

@@ -0,0 +1,14 @@
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)