Scarletio

Latest version: v1.0.84

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

Scan your dependencies

Page 9 of 14

1.0.36

Improvements

- Add `ExceptionWriterContextmanager` with `catching` shortcut.
- Make `write_exception_sync` directly importable.
- Add more traceback highlight options. (This also means some changed)
- `before` and `after` parameters when writing a traceback are now also highlighted.
- `Future.__repr__` now wont contain the full exception representation if too long.
- Update `format_coroutine` function to produce shorter representation.
- Replace default exception hooks.

1.0.35

Improvements

- `EditorAdvanced` now ignores the pasted console prefixes.
- Highlighter now handles not only the default console prefix.

1.0.34

Improvements

- Add `Executor.get_used_executor_count`.
- Add `Executor.get_free_executor_count`.
- Add `Executor.get_total_executor_count`.
- `Executor` now auto adjusts it's executor count.
- Fix a slow loop in `EventThread.runner` caused by ignoring continuously queued callbacks.
- Fix a slow loop in `EventThread.run_in_executor` caused by not adjusting kept executor count.

Renames, Deprecation & Removals

- Deprecate `keep_executor_count` parameter everywhere.
- Deprecate `Executor.used_executor_count`. Please use `.get_used_executor_count()` instead.
- Deprecate `Executor.free_executor_count`. Please use `.get_free_executor_count()` instead.

1.0.33

Improvements

- Handle io race condition when invoking `EditorAdvanced` within interactive console.
- Improve `repr(Task)` with updating `format_coroutine` function.
- Add `Future.get_result` and `Future.get_exception` and to related types as well in favor of moving away from
`.result` and `.exception`, as they not intuitive.

1.0.32

Not secure
Improvements

- Add code highlighting support.
- Add `highlighter` parameter for `render_frames_into`, `render_exception` into.
- Repeated exception frames are now grouped.
- Add `render_frames_into_async`.
- Add `render_exception_into_async`.
- Add `write_exception_async`.
- Add `write_exception_maybe_async`.
- `Task.get_stack` now supports async generator correctly.
- Add `write_exception_async`.
- Add `set_default_trace_writer_highlighter`.
- Add `set_trace_writer_highlighter`.
- Add `get_default_trace_writer_highlighter`.
- Render syntax errors correctly.
- Handle syntax errors correctly in console.
- Highlight consoles too!

Bug fixes

- `EventThread._accept_connection_task` now handles task cancellation correctly.
- `WebSocketServerProtocol.lifetime_handler` now handles task cancellation correctly.
- `WebSocketServerProtocol.handshake` now handles task cancellation correctly.
- `WebSocketCommonProtocol.transfer_data` now handles task cancellation correctly.
- `to_coroutine` dropped error on `python3.11`.

ext.asyncio

- `EventThread.call_exception_handler` wanted to render exception traceback when there was no exception.

Renames, Deprecation & Removals

- Deprecate `EventThread.render_exception_async`, use `write_exception_async` instead.
- Deprecate `EventThread.render_exception_maybe_async`, use `write_exception_maybe_async` instead.

1.0.31

Not secure
Improvements

- Frame accesses are now normalized with a proxy type.
- `format_coroutine` now handles coroutine generators as expected.
- `format_coroutine` now handles running states as expected.
- Multiline expressions now show up correctly in tracebacks.

Page 9 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.