I'm looking for Python library which can help with window automation tasks (either on macOS or Linux).
By automation I mean finding the application/game window, gets the content of it and be able to send mouse and keyboard events.
Here is the similar code: jBugman/minesweeper at GitHub which aims to play Minesweeper game by simulating user interaction events.
I'm looking for something similar, but in form of library/framework that I can use for similar use (more universal way). Can work with Quartz or other similar libraries. Compatibility with macOS is preferred, but I'm open to Linux as well (X).