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.5.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file macos_display-1.1.5.tar.gz
.
File metadata
- Download URL: macos_display-1.1.5.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 | 77c752077410b0ee0713c0752bb5f6be9ed49efbfb00444ebaccf041aa82dfe2 |
|
MD5 | 134bdefd5a003838b953e1e1f2c730c0 |
|
BLAKE2b-256 | dd52e7c8efd0449efb04d711c1bbe2813773932b3b8eadeec22b8a10ff79d5d6 |
File details
Details for the file macos_display-1.1.5-cp39-cp39-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: macos_display-1.1.5-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 | 64ebec92104d2c153488b2b1468c5395204cef70c0708dc3c6c76f58e783b909 |
|
MD5 | 2e548e7d1b2f381ac0edaae0838d53d2 |
|
BLAKE2b-256 | 175fbad7a542b57053663ba12b8bc84ea87898034e05062f2d815ea62da8e35a |