mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-31 05:39:41 -06:00
* fix: get rid of quote replacing * chore: gen * drive by: event doc wording * fix: dedenting
12 lines
630 B
TypeScript
12 lines
630 B
TypeScript
import { Snippet } from '@/lib/generated/snips/types';
|
|
|
|
const snippet: Snippet = {
|
|
"language": "python",
|
|
"content": "from hatchet_sdk import Hatchet\n\nhatchet = Hatchet(debug=True)\n\n\ndef main() -> None:\n workflow_list = hatchet.workflows.list()\n rows = workflow_list.rows or []\n\n for workflow in rows:\n print(workflow.name)\n print(workflow.metadata.id)\n print(workflow.metadata.created_at)\n print(workflow.metadata.updated_at)\n\n\nif __name__ == \"__main__\":\n main()\n",
|
|
"source": "out/python/api/api.py",
|
|
"blocks": {},
|
|
"highlights": {}
|
|
};
|
|
|
|
export default snippet;
|