Asyncio is a library in Python that provides the infrastructure for writing single-threaded concurrent code using coroutines, multiplexing I/O access over sockets and other resources.