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
Release history Release notifications | RSS feed
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.8.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file macos_display-1.1.8.tar.gz.
File metadata
- Download URL: macos_display-1.1.8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c0fab7aac08096581206c37a7c3d5bca66c575cceb88899c3f5bc24100f4ee1
|
|
| MD5 |
7b47bf85c250810672cd125333ab67c9
|
|
| BLAKE2b-256 |
a2dcbba55544b1796f16fb2a03c7d84b8f529da2eaad9f5dbf7475477b0b94e0
|
File details
Details for the file macos_display-1.1.8-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: macos_display-1.1.8-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1516784243ca61ebaf6d37346ae27a20a92aac8995c0ef30af9e946926fedff
|
|
| MD5 |
ea6a6ac01aa98bd427fa0452e44d021c
|
|
| BLAKE2b-256 |
ea6526a2b99385d4074d72e1012af3bf385f1573368e50f4e56e84fa06605bcc
|