Screen-brightness-control

Latest version: v0.24.1

Safety actively analyzes 683530 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

0.11.2

* Merge PR 12

0.11.1

* Fix `linux.DDCUtil.set_brightness` expiring non-existent cache keys
* Refactor `linux.XRandr.get_display_info` and `linux.DDCUtil.get_display_info` to be more readable
* All calls to `ddcutil` executable now have stderr suppressed
* Minor optimizations and tweaks to reduce pylint warnings

0.11.0

* Added `linux.SysFiles` as a way of addressing laptop displays without requiring a 3rd party program
* Added tests for `windows` and `linux` sub-modules
* Remove remaining deprecated functions from 10 (`windows.VCP.get_monitor_caps`, `linux.get_brightness_from_sysfiles`)

0.10.1

* Fix TypeError in `windows.VCP.set_brightness` when calling without specifying the `display` kwarg

0.10.0

Added/Changed:
* `set_brightness` now returns `None` by default. To enable old behaviour pass the kwarg `no_return=False` when calling it

Removed:
* `windows.set_brightness`
* `windows.get_brightness`
* `windows.list_monitors`
* `windows.WMI.get_display_names`
* `windows.VCP.get_display_names`
* `linux.set_brightness`
* `linux.get_brightness`
* `linux.list_monitors`
* `linux.Light.get_display_names`
* `linux.XRandr.get_display_names`
* `linux.DDCUtil.get_display_names`

Fixed:
* Fix `fade_brightness` not working on Linux systems with only `xbacklight` installed

Deprecated:
* `windows.VCP.get_monitor_caps`
* `linux.get_brightness_from_sysfiles`

0.9.0

Added/Changed

* Lower level functions (EG: `windows.VCP.get_brightness`) now only support specifying the display as an `int`
* Low level `set_brightness` functions (EG: `windows.VCP.set_brightness`) no longer return anything
* Improved error traceback formatting. When using `verbose_error` the entire exception traceback is now included
* Added `start` kwarg to `windows.VCP.iter_physical_monitors`
* Sped up `windows.get_display_info` by reducing the number of calls to `wmi` APIs
* Moved `linux._EDID` to top level `EDID` class
* Changed order in which functions/classes are defined. Most relevant ones are at top of the file
* Added basic testing
* `linux.XRandr.get_display_info` no longer includes brightness in returned info by default

Deprecated
* `set_brightness` returning the new brightness. In the future it will return `None` by default.
* `windows.set_brightness`
* `windows.get_brightness`
* `windows.list_monitors`
* `windows.WMI.get_display_names`
* `windows.VCP.get_display_names`
* `linux.set_brightness`
* `linux.get_brightness`
* `linux.list_monitors`
* `linux.Light.get_display_names`
* `linux.XRandr.get_display_names`
* `linux.DDCUtil.get_display_names`

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.