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 Distribution

macos_display-1.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

macos_display-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl (5.9 kB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

macos_display-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl (5.8 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

File details

Details for the file macos_display-1.1.1.tar.gz.

File metadata

  • Download URL: macos_display-1.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0

File hashes

Hashes for macos_display-1.1.1.tar.gz
Algorithm Hash digest
SHA256 79cd1230458ad216c02f199d19f1c0b231fa966cb15780eccb0d639b0afda15c
MD5 78e0a4d158a790a0063714eaf49b26e8
BLAKE2b-256 4d8f402636d129f17fd94f0880c1756a83a5643517bb96b422fb433f551cca9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0

File hashes

Hashes for macos_display-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 999669ad14078d3ee4611bf94d81e2de4ce074f8c03de67bd00447d725743fc5
MD5 4d3216f9cd4111f2b6022e1efdfa0d83
BLAKE2b-256 35e21e93888915a474ecc5e4e47937d625e9cff9669d964efb9e7831ec62fddb

See more details on using hashes here.

File details

Details for the file macos_display-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: macos_display-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.0

File hashes

Hashes for macos_display-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 4035875b631bfff35ca478c9dedb120fa42484ff7886b5e5b7d16dadd8a683d6
MD5 2d05556b293b0a96a0739b3332c30b64
BLAKE2b-256 f6ff1c49315a157f8d753f6e4a47a23b45eee6da3a08f10bf6b6702d0eadc854

See more details on using hashes here.

Supported by

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