window-input (pypi): A set of tools for interacting with windows regardless of them being minimized or in background.
Keywords: python-library