Skip to main content

An ultra fast cross-platform multiple screenshots module in pure python using ctypes.

Project description

Python MSS

PyPI version Anaconda version Tests workflow Downloads

from mss import mss

# The simplest use, save a screenshot of the 1st monitor
with mss() as sct:
    sct.shot()

An ultra-fast cross-platform multiple screenshots module in pure python using ctypes.

  • Python 3.9+, PEP8 compliant, no dependency, 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 screenshots (like AI, Computer Vision);
  • get the source code on GitHub;
  • learn with a bunch of examples;
  • you can report a bug;
  • need some help? Use the tag python-mss on Stack Overflow;
  • and there is a complete, and beautiful, documentation :)
  • MSS stands for Multiple ScreenShots;

Installation

You can install it with pip:

python -m pip install -U --user mss

Or you can install it with Conda:

conda install -c conda-forge python-mss

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mss-10.0.0.tar.gz (83.1 kB view details)

Uploaded Source

Built Distribution

mss-10.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file mss-10.0.0.tar.gz.

File metadata

  • Download URL: mss-10.0.0.tar.gz
  • Upload date:
  • Size: 83.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mss-10.0.0.tar.gz
Algorithm Hash digest
SHA256 d903e0d51262bf0f8782841cf16eaa6d7e3e1f12eae35ab41c2e318837c6637f
MD5 a02a98d33d21c0b5dfb93afa599584f6
BLAKE2b-256 be2c6a50c69793918502b4391729bd5741964c9f8ccc98c8482d4a680384923b

See more details on using hashes here.

File details

Details for the file mss-10.0.0-py3-none-any.whl.

File metadata

  • Download URL: mss-10.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for mss-10.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82cf6460a53d09e79b7b6d871163c982e6c7e9649c426e7b7591b74956d5cb64
MD5 6adc75306c9aa1d2f07f631c3b75a43e
BLAKE2b-256 29aab897ae9e1c1616e4df9fb319637ef6a9d07cca6d46de6b59c80209f006a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page