mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-03 15:19:44 -06:00
* fix: get rid of quote replacing * chore: gen * drive by: event doc wording * fix: dedenting
12 lines
632 B
TypeScript
12 lines
632 B
TypeScript
import { Snippet } from '@/lib/generated/snips/types';
|
|
|
|
const snippet: Snippet = {
|
|
"language": "python",
|
|
"content": "import asyncio\n\nfrom .workflows.first_task import SimpleInput, first_task\n\n\nasync def main() -> None:\n result = await first_task.aio_run(SimpleInput(message=\"Hello World!\"))\n\n print(\n \"Finished running task, and got the transformed message! The transformed message is:\",\n result.transformed_message,\n )\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n",
|
|
"source": "out/python/quickstart/run.py",
|
|
"blocks": {},
|
|
"highlights": {}
|
|
};
|
|
|
|
export default snippet;
|