Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilturek/qds
A Python wrapper for Quartz Display Services.
https://github.com/kamilturek/qds
Last synced: 26 days ago
JSON representation
A Python wrapper for Quartz Display Services.
- Host: GitHub
- URL: https://github.com/kamilturek/qds
- Owner: kamilturek
- License: mit
- Created: 2022-09-07T20:08:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T20:11:00.000Z (over 1 year ago)
- Last Synced: 2024-09-26T08:26:00.047Z (about 1 month ago)
- Language: Python
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# QDS
A Python wrapper for [Quartz Display Services](https://developer.apple.com/documentation/coregraphics/quartz_display_services).
Supported Python versions are 3.10 and 3.11.
## Installation
```bash
pip install python-qds
```## Usage
You can use low-level C API bindings from the `qds.api` module.
```python
>>> import qds.api
>>> qds.api.get_online_display_list()
[1]
>>> qds.api.is_display_active(1)
True
>>> qds.api.get_display_pixels_wide(1)
1440
```Or use the high-level `qds.display.Display` class being a convenience wrapper for
the low-level functions.```python
>>> from qds.display import Display
>>> d = Display.from_id(1)
>>> d.is_online
True
>>> d.width
1440
```