Screen-brightness-control

Latest version: v0.24.1

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

Scan your dependencies

Page 1 of 10

0.24.1

- Add `windows.COM_FLAG` constant for controlling how `pythoncom` is initialised (42, a9b1084)
- Ensure that `pythoncom.CoInitialise` is not called without needing to
- Fix `pythoncom` not being uninitialised after we're done with it

0.24.0

- Improve display identification by adding UID field to monitor info
- Use WinAPI UID to populate UID field on Windows (41, BingoWon)
- Use I2C path to populate UID field on Linux (05ad0c0)
- Remove deprecated `linux.Light` brightness method (a3e8085)
- Remove `_OS_METHODS` attr (011a847)

0.23.0

- Add `allow_duplicates` param to `filter_monitors` and most top-level functions (34, BingoWon)
- Add `allow_duplicates` kwarg to command line (35, BingoWon)
- Add ability to stop `fade_brightness` thread before starting new one (38, BingoWon)
- Add ability to set default configuration values (3db8344)
- Can set default value for `method` and `allow_duplicate` kwargs
- Smarter interval handling in `fade_brightness` (36, BingoWon)
- Better handling of monitor identification when using relative brightness values in `set_brightness` (37, BingoWon)
- Fix XRandr reporting displays on wayland session (b76b82f)
- Remove deprecated behaviour of `Display.fade_brightness` returning the new brightness (8880c65)
- Deprecate `linux.Light` due to package being unmaintained

0.22.2

- Removed deprecated top level imports (38e1a85)
- Restrict param types in `EDID.parse` to prevent potential `TypeError` (677ea14)
- Fixed some docstrings (7d35446, e91f826)
- Fix `force` kwarg not being propagated in `Display.fade_brightness` (ffa10a1)
- Fix excessive calls to `dxva2.DestroyPhysicalMonitor` (b273777)
- Fix potential `UnboundLocalError` in `VCP.[get/set]_brightness` (6e411d4)
- Port test suite to pytest and expand coverage (89642fc...d7a1567)

0.22.1

- Fix error when laptop screen is closed while external display connected on Windows (33)

0.22.0

- Type safety improvements
- Add proper implementation for `MaxRetriesExceededError` (53cf7f1)
- `set_brightness` now assumes 100% brightness if `get_brightness` fails (73b9ec1)
- Improved debugging in test runner
- TTL cache now deletes all expired data semi-automatically (31957f2)
- Upgrade out of date notice on documentation to redirect to latest version of current document (f786f71)
- Switch from `setup.py` to `pyproject.toml`
- Upgraded release CICD
- Fix filtering list of monitors by method in `filter_monitors`
- Fix `TypeError` in `Monitor` class constructor when passing unknown monitor in
- Fix invalid argument when correcting post-fade brightness in `fade_brightness`
- Remove support for identifying displays solely by their model (c8e89dd)
- Remove deprecated `Monitor.__getitem__` behaviour
- Dropped Python 3.7 support
- Deprecate `Display.fade_brightness` returning the new brightness. Will return `None` from `v0.23.0`

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.