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.6.tar.gz
(5.7 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.6.tar.gz.
File metadata
- Download URL: macos_display-1.1.6.tar.gz
- Upload date:
- Size: 5.7 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 |
5eadda18adf9c2bb06e56469ee7adf7f9326bbdd7ebd625abff4ab617eb7e20a
|
|
| MD5 |
c08166fe6df5ce39fe16645aa098296a
|
|
| BLAKE2b-256 |
14b3ed743dfb0a717e80644f96c156684d6477afc0a98c5fef1f9711d5951337
|
File details
Details for the file macos_display-1.1.6-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: macos_display-1.1.6-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 |
2dcebfa00c6b299a524ba81704b0216e28c5a9cbd2e0d51b468ea9eb133bb188
|
|
| MD5 |
2fefd44f740448bf193d808e74b6a923
|
|
| BLAKE2b-256 |
a119e4d8fd02074b96cc1bc29a8b8e152a47f4e887961c4e234878aec876a593
|