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.4.tar.gz
(5.6 kB
view details)
Built Distributions
File details
Details for the file macos_display-1.1.4.tar.gz
.
File metadata
- Download URL: macos_display-1.1.4.tar.gz
- Upload date:
- Size: 5.6 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 | 2f39765075365c50bf841502c26f227450614bd55e95ffd8a54a3343813a9a68 |
|
MD5 | d0bde6a4a478c4ffc94abae8ea24bc90 |
|
BLAKE2b-256 | 86cf5983eac3795adf195e8ce475c9c9bb42a5e85c56b8c4677a0455da120431 |
File details
Details for the file macos_display-1.1.4-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: macos_display-1.1.4-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 52.1 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85236f1ffc3a063686c5575a246569ce756f26bf6666de0ddf74e8f2725115e4 |
|
MD5 | 4583ecf579b3cf9092db4155d406203b |
|
BLAKE2b-256 | 037b8ea3378778233046128b33bc161c940de5356aa9c339683c9a6a584fbbcd |
File details
Details for the file macos_display-1.1.4-cp39-cp39-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: macos_display-1.1.4-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 53.7 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 | 15dc8bd59dcc92986f682c7d4d52d918ca052139f571b3f79ad1dd1983a31988 |
|
MD5 | 14d07800f393c822df38e793f5d7d3d3 |
|
BLAKE2b-256 | 1613c0d00827a6c1b3284a0f902ed0c71229c276dcd76e79aecb179b64d45358 |