syncwrap is a light and elegant solution for running asynchronous functions in a synchronous environment. This helper neatly packages your async tasks, handling event loop creation and cleanup so you don’t have to.
import asyncio
def run_async_safely(async_func, *args, **kwargs):