Enlighten

Latest version: v1.12.4

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

Scan your dependencies

Page 1 of 6

1.12.4

**Bug Fixes**
- Resize handler crashes when window height is reduced and manager has no counters 64

**Changes**
- Resize handler now does line feeds when height is increased when not threaded
- Previously only did when threaded
- A warning is raised when closing a previously closed counter
- Previously raised a non-specific error in some conditions
- If the counter would normally be refreshed before closing, it will only refresh if still attached to manager, i.e. ``leave=True``

**Housekeeping**
- Pin Pip version in Tox to support older Python versions

1.12.3

**Housekeeping**
- Fix API links in Read The Docs

1.12.2

**Housekeeping**
- Add readthedocs.yaml
- [New requirement](https://blog.readthedocs.com/migrate-configuration-v2/)

1.12.1

**Bug Fixes**
- Minor doc fixes
- Improved context manager example
- Remove unexpected reference to enlighten.counter in example
- Thanks to raffaem for reporting 63

**Changes**
- Improved colors in multiprocessing example
- Added error handling to multiprocessing example

1.12.0

**Bugfixes**
- Elapsed time continued to increment after counter was closed 62
- Elapsed time is now pinned to last time ``count`` changed if counter is stopped or count matches total
- Thanks to bedaberner for reporting
- Seconds occasionally rounded up to 00:60 vs 01:00
- Thanks to DJtheRedstoner for reporting and PR 61


**Changes**
- Counter positions are now recalculated when a counter is removed
- Thanks to SKnight79 for reporting 58
- Color resolution is now cached
- Thanks to Dauriel for inspiration 56
- Direct use of Counter class now redirects to Manager.counter()
- This allows the behavior to be consistant
- Thanks to ngriffiths13 for inspiration
- Direct use of Counter class removed from documentation
- Direct use of Counter class be refactored or removed in version 2.0
- Counters and status bars can now be coerced to strings
- Output is same as ``Counter.format()`` with default values
- Does not apply to subcounters
- Python 3.12 support added to metadata
- Dropped support for Python 3.4
- No code changes, but metadata and tests removed


**Housekeeping**
- Minor code tweaks
- Minor test cleanup
- Demo gif updated
- Specialist Tox environment added
- Basic ASV benchmark script added

1.11.2

**Bugfixes**
- `NotebookManager` raised exception if there were no counters when `stop()` was called 53

**Changes**
- Python 3.11 support added to metadata

**Housekeeping**
- Update tests for Prefixed 0.6.0
- `'!'` flag now adds space after number even if there is no prefix added
- Make Python 3.11 the base version for tests

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.