mss 10.0.0
pip install mss
Latest version
Released:
An ultra fast cross-platform multiple screenshots module in pure python using ctypes.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License Copyright (c) 2013-2024, Mickaël 'Tiger-222' Schoentgen Permission is hereby granted, f...)
- Author: Mickaël Schoentgen
- Maintainer: Mickaël Schoentgen
- Tags BitBlt, CGGetActiveDisplayList, CGImageGetBitsPerPixel, EnumDisplayMonitors, XGetImage, XGetWindowAttributes, XRRGetScreenResourcesCurrent, ctypes, monitor, screen, screencapture, screengrab, screenshot
- Requires: Python >=3.9
-
Provides-Extra:
dev
,docs
,tests
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Python MSS
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT License Copyright (c) 2013-2024, Mickaël 'Tiger-222' Schoentgen Permission is hereby granted, f...)
- Author: Mickaël Schoentgen
- Maintainer: Mickaël Schoentgen
- Tags BitBlt, CGGetActiveDisplayList, CGImageGetBitsPerPixel, EnumDisplayMonitors, XGetImage, XGetWindowAttributes, XRRGetScreenResourcesCurrent, ctypes, monitor, screen, screencapture, screengrab, screenshot
- Requires: Python >=3.9
-
Provides-Extra:
dev
,docs
,tests
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d903e0d51262bf0f8782841cf16eaa6d7e3e1f12eae35ab41c2e318837c6637f |
|
MD5 | a02a98d33d21c0b5dfb93afa599584f6 |
|
BLAKE2b-256 | be2c6a50c69793918502b4391729bd5741964c9f8ccc98c8482d4a680384923b |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82cf6460a53d09e79b7b6d871163c982e6c7e9649c426e7b7591b74956d5cb64 |
|
MD5 | 6adc75306c9aa1d2f07f631c3b75a43e |
|
BLAKE2b-256 | 29aab897ae9e1c1616e4df9fb319637ef6a9d07cca6d46de6b59c80209f006a4 |