Skip to main content

Retrieve information about macOS displays

Project description

Fetch information about macOS displays given a display ID, which is available from nsscreen.deviceDescription()["NSScreenNumber"] using pyobjc.

Get the user-visible display name from an id:

>>> import macos_display
>>> macos_display.display_name(69732928)
'Color LCD'

List all display names:

>>> from AppKit import NSScreen
>>> import macos_display
>>> screens = NSScreen.screens()
>>> for screen in screens:
...     screen_id = screen.deviceDescription()["NSScreenNumber"]
...     name = macos_display.display_name(screen_id)
...     print(name)
...
Color LCD
SAMSUNG
LCD1970NXp

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

macos_display-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl (49.9 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

macos_display-1.1.3-cp38-cp38-macosx_10_14_x86_64.whl (49.7 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

macos_display-1.1.3-cp37-cp37m-macosx_10_14_x86_64.whl (49.5 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

Details for the file macos_display-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: macos_display-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for macos_display-1.1.3-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e16686e3545e4013aaabb99c38e6bea144473f1d7f6ef425a9ad5a0f1f599bf7
MD5 69014ef26f2ad7d175a9177eb879f03b
BLAKE2b-256 3198bd6685fe95a1e1ef7ceebd9a9e69655e7f90aab66220d99afd371247111e

See more details on using hashes here.

File details

Details for the file macos_display-1.1.3-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: macos_display-1.1.3-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for macos_display-1.1.3-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6ce1fb069699be5f497fc84af37c29a3bc3188fd3c7c4f8fc3a27255415f761d
MD5 8d74410b01959b227fbe7146d7f4f761
BLAKE2b-256 b0479c1b4a2e33e4385b53fc4baaaa6425184ffc94928b588814a50ba9e66c40

See more details on using hashes here.

File details

Details for the file macos_display-1.1.3-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: macos_display-1.1.3-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 49.5 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for macos_display-1.1.3-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e3e4eb14d392a892d205a14fc1014ddf51d686b2bc7c401f7e7727e9749b3966
MD5 aebd109d825a6463eaa719fe43cfee9a
BLAKE2b-256 202591130ba91f516dfa8e3631d82419fe4f36f994182427857e7513c5b4045b

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