Screen-brightness-control

Latest version: v0.23.0

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

Scan your dependencies

Page 1 of 10

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)

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`

0.21.0

* Add new `Display` dataclass to replace old `Monitor` class
* `Monitor` is now deprecated for removal in v0.23.0
* Add ability to disable `--async` flag in `linux.DDCUtil`
* Add new type aliases with better descriptions of what they mean (see 5fa542f, 20c3dea)
* Fix not all monitor handles being properly cleaned up in `windows.VCP`
* Refactor `fade_brightness`
* Remove redundant type info in docstrings (see 0431b53)
* Remove redundant docstrings (see 20c3dea)
* Deprecate `Monitor.__getitem__` behaviour for removal in v0.22.0
* Deprecate using a display's model to identify it. Use the name instead. Will be removed in v0.22.0
* Deprecate unused top-level imports for removal in v0.22.0:
* `MONITOR_MANUFACTURER_CODES`
* `debug_info`

0.20.0

* Merge 28 Added increment change for --set in command line argument from ujjukumar
* Add ability to look up method name via `get_methods`
* Rework exceptions (see d5f1bdd)
* New exceptions added. Should all be backwards compatible
* Refactor:
* `windows.get_display_info` - removed massive generic try/except blocks
* `helpers.EDID.parse` - more helpful exceptions
* `filter_monitors` - better readability
* More consistent use of "display", "screen" and "monitor" terminology (see 46bfac2)

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.