An ultra fast cross-platform multiple screenshots module in pure python using ctypes.
copied from cf-staging / python-mssPython 3.9+, PEP8 compliant, no dependency, and thread-safe. Very basic, it will grab one screenshot by monitor or a screenshot of all monitors and save it to a PNG file. But you can use PIL and benefit from all its formats (or add yours directly). Integrate well with Numpy and OpenCV. It could be easily embedded into games and other software which require fast and platform optimized methods to grab screen shots (like AI, Computer Vision). MSS stands for Multiple ScreenShots.