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

Uploaded Source

Built Distributions

macos_display-1.1.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: macos_display-1.1.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for macos_display-1.1.2.tar.gz
Algorithm Hash digest
SHA256 aea2067ecd5461882c35ffb502b493998bfe02cf8584aecf475454dd5cf9418d
MD5 675783586a6a69037ab24128042ddcdb
BLAKE2b-256 0dbadf05598ab1c71ed51c0fc96c51e1a9f846e85e2bc59dc1fd7e31955f088a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.2-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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for macos_display-1.1.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 70e8af3d8fa0aa332facff6ae5caf1c31b52ee28c46c126c1ec1ccc9592bd9fa
MD5 6a70670f9423375e931930ea73228356
BLAKE2b-256 0073123e91c4ea28d662f30f63fa1c8ca07b615dea48e8df89ca471b1367cc7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.2-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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for macos_display-1.1.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8110bb3074efa14196cd21198a8ef7d532c8f0692e87848f09d3dcb370e67777
MD5 d83ce928cf77a1847dfafc136a56dac8
BLAKE2b-256 e664c96b3fd9c3469d879f4dfd25e72c424e6dbb0b890cf26cb4141655eb8026

See more details on using hashes here.

File details

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

File metadata

  • Download URL: macos_display-1.1.2-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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for macos_display-1.1.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 09601f95632e258b37f85dfbf22996d971a1e82aafb0450afaeb586870014972
MD5 af434642748a2a742e1111deccf23865
BLAKE2b-256 30c4e4a10fb790281161ce561c7642ff3797885e7348032c6b89ec5d7297dc66

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