GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BoboTiG/python-mss: An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.

BranchesTags
Open more actions menu

Latest commit

 

History

1,084 Commits
1,084 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.vscode
.vscode
 
 
.well-known
.well-known
 
 
demos
demos
 
 
docs
docs
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.readthedocs.yml
.readthedocs.yml
 
 
AGENTS.md
AGENTS.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTORS.md
CONTRIBUTORS.md
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
check.ps1
check.ps1
 
 
check.sh
check.sh
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Python MSS

PyPI version Anaconda version Tests Downloads

Tip

Become my boss to help me work on this awesome software, and make the world better:

Patreon

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.10+, 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

In case of scaling and high DPI issues for external monitors: some packages (e.g. mouseinfo / pyautogui / pyscreeze) incorrectly call SetProcessDpiAware() during import process. To prevent that, import mss first.

About

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

python-mss.readthedocs.io

Topics

clicross-platformctypesefficiencygnu-linuxmacosmonitormsspythonpython-librarypython-mssscreenshotwindows

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

1.3k stars

Watchers

12 watching

Forks

117 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.