import asyncio
import yak

app = yak.App(name="hello-task", image="python:3.11")


@app.task()
def square(value: int) -> int:
    return value * value


@app.entrypoint()
async def main() -> None:
    result = await square.remote.aio(21)
    print(f"square(21) = {result}")


if __name__ == "__main__":
    asyncio.run(main())
