mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-24 01:28:49 -06:00
* api changes * doc changes * move docs * generated * generate * pkg * backmerge main * revert to main * revert main * race? * remove go tests
12 lines
682 B
TypeScript
12 lines
682 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': {}
|
|
}; // Then replace double quotes with single quotes
|
|
|
|
export default snippet;
|