asyncio.run

Runs coroutine from sync code.

import asyncio
async def main():
    await asyncio.sleep(1)
asyncio.run(main())