Prompt-toolkit

Latest version: v3.0.50

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

Scan your dependencies

Page 4 of 22

3.0.32

------------------

Bug fixes:
- Use `DummyInput` by default in `create_input()` if `sys.stdin` does not have
a valid file descriptor. This fixes errors when `sys.stdin` is patched in
certain situations.
- Fix control-c key binding for `ProgressBar` when the progress bar was not
created from the main thread. The current code would try to kill the main
thread when control-c was pressed.

New features:
- Accept a `cancel_callback` in `ProgressBar` to specify the cancellation
behavior for when `control-c` is pressed.
- Small performance improvement in the renderer.

3.0.31

------------------

New features:
- Pass through `name` property in `TextArea` widget to `Buffer`.
- Added a `enable_cpr` parameter to `Vt100_Output`, `TelnetServer` and
`PromptToolkitSSHServer`, to completely disable CPR support instead of
automatically detecting it.

3.0.30

------------------

New features:
- Allow zero-width-escape sequences in `print_formatted_text`.
- Add default value option for input dialog.
- Added `has_suggestion` filter.

Fixes:
- Fix rendering of control-shift-6 (or control-^). Render as '^^'
- Always wrap lines in the Label widget by default.
- Fix enter key binding in system toolbar in Vi mode.
- Improved handling of stdout objects that don't have a 'buffer' attribute. For
instance, when using `renderer_print_formatted_text` in a Jupyter Notebook.

3.0.29

------------------

Fixes:
- Further improve performance of dictionary completions.

3.0.28

------------------

New features:
- Custom 'exit' function to return from REPL that
* doesn't terminate `sys.stdin` when `exit` is called (important for
`embed()`).
* doesn't require to be called with parentheses.

Fixes:
- Clean up signatures on control-c.

3.0.27

------------------

- Limit number of completions to 5k (for performance).
- Several typing fixes.

Page 4 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.