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.10.tar.gz (5.8 kB view details)

Uploaded Source

Built Distributions

macos_display-1.1.10-cp310-cp310-macosx_10_14_x86_64.whl (54.2 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

macos_display-1.1.10-cp39-cp39-macosx_10_14_x86_64.whl (54.4 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

macos_display-1.1.10-cp38-cp38-macosx_10_14_x86_64.whl (54.2 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: macos_display-1.1.10.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for macos_display-1.1.10.tar.gz
Algorithm Hash digest
SHA256 691293d8770dcbbdf5ac4a825c2c168904bff0f3a18eb228731dce3dec4825d1
MD5 53cd22b19903ec0fe0852e681355702b
BLAKE2b-256 49147318a6a1a161a42a784186a780452c7060e6223621ca864145407852dd43

See more details on using hashes here.

File details

Details for the file macos_display-1.1.10-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: macos_display-1.1.10-cp310-cp310-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: CPython 3.10, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for macos_display-1.1.10-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d274b3e6fca465528e5401f5f58143e28f6c3a0856948207d8c265ff21a26df5
MD5 2758f565556662810206c353bbb77a61
BLAKE2b-256 0884bfc58897e689e1c5deb08de27b515d6bd1df7048e55d6d533dd14a428de2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.10-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for macos_display-1.1.10-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a3089292456ecae6385b1e2f531aa84d8968416786ce8ec68b80ffedeaa3997f
MD5 70cd0b60391b2d7398523db83453ea7f
BLAKE2b-256 71ea172bff24abfb84ff5d98ecb849d527a8590363793458d9cec70f4ed05390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.10-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for macos_display-1.1.10-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 65d784bc71dff51d967af0d96e32d760c80d6e2ad367fba78b828d5edd113507
MD5 fe243745ffabaea4d2984ecd89a70c2e
BLAKE2b-256 e4f36973aab98a196c49771a35543c5b98880ed0b97a45abaa4141ed9034ad19

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