Skip to main content

mss-stubs

License Python PyPI

PEP 561 type stubs for mss, the cross-platform screenshot library.

mss ships without type annotations. Running Pyright or Pylance in strict mode will flag every mss call as unknown. This package fixes that.


Install

pip install mss-stubs

Or with uv:

uv pip install mss-stubs

Usage

Install alongside mss and your type checker picks it up automatically. No configuration needed.

import mss

with mss.MSS() as sct:
    monitor = sct.monitors[1]   # dict[str, int]
    shot = sct.grab(monitor)    # ScreenShot
    print(shot.size)            # tuple[int, int]
    print(len(shot.bgra))       # bytes

Covered API

Symbol Type
mss.MSS() MSSBase
MSSBase.monitors list[dict[str, int]]
MSSBase.grab(monitor) ScreenShot
MSSBase.__enter__ / __exit__ context manager
ScreenShot.size tuple[int, int]
ScreenShot.bgra bytes

License

Apache 2.0. See LICENSE.
© 2026 paredez.dev

Metadata

Release files for mss-stubs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mss-stubs 0.1.0
File Size Uploaded Provenance Actions
mss_stubs-0.1.0.tar.gz 6.6 kB Without provenance Details for mss_stubs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mss-stubs 0.1.0
File Interpreter ABI Platform Actions
mss_stubs-0.1.0-py3-none-any.whl Python 3 none any Details for mss_stubs-0.1.0-py3-none-any.whl

Total release size: 16.7 kB

Release files / mss_stubs-0.1.0.tar.gz

Download URL mss_stubs-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5eeb1b9e535195ab31ed2193f600cd03c2b0a2040e2a8eb0be76795c047f7430
BLAKE2b-256 checksum
How to use checksums
b8f72501d63607b51bd6759e01615209428c48f70cad56f3ecb6e0bc8b3f3921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mss_stubs-0.1.0-py3-none-any.whl

Download URL mss_stubs-0.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4c54916de02f19c7a33ff1441ba629c3e7344080d3d799f199444f8b0ab8c63
BLAKE2b-256 checksum
How to use checksums
f2e498c1e085ba4869717b298b044228193eb553730e9efb739bb6e4906c48be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mss-stubs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page