Prompt-toolkit

Latest version: v3.0.50

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

Scan your dependencies

Page 15 of 22

0.47

Not secure
----------------

New features:
- Added `prompt_toolkit.layout.utils.iter_token_lines`.
- Allow `None` values on the focus stack.
- Buffers can be readonly. Added `IsReadOnly` filter.
- `eager` behavior for key bindings. When a key binding is eager it will be
executed as soon as it's matched, even when there is another binding that
starts with this key sequence.
- Custom margins for BufferControl.

Fixes:
- Don't trigger autocompletion on paste.
- Added `pre_run` parameter to CommandLineInterface.
- Correct invalidation of BeforeInput and AfterInput.
- Correctly handle transparency. (For floats.)
- Small change in the algorithm to determine Window dimensions: keep in the
bounds of the Window dimensions.

Backwards-incompatible changes:
- There a now a `Lexer` abstract base class. Every lexer should be an instance
of that class, and Pygments lexers should be wrapped in a `PygmentsLexer`
class. `prompt_toolkit.shortcuts` still accepts Pygments lexers directly for
backwards-compatibility.
- BufferControl no longer has a `show_line_numbers` argument. Pass a
`NumberedMargin` instance instead.
- The `History` class became an abstract base class and only defines an
interface. The default history class is now called `InMemoryHistory`.

0.46

Not secure
Fixes:
- Correctly add current directory to sys.path.
- Only show search highlighting when the search is the current input buffer.
- Styling fix.

0.45

Not secure

0.44

Not secure
New features:
- Added --interactive option for ptipython.
- A few style improvements.

0.43

Not secure
New features:
- Integration with Tk eventloop. (This makes turtle and other Tk stuff work
again from the REPL.)
- Multi column completion visualisation.

0.42

Not secure
Fixes:
- Workaround for Jedi bug. (Signatures of functions with keyword-only arguments.)
- Correctly show traceback on Python 3.
- Better styling of the options sidebar.

New features:
- Exit REPL when input starts with Control-Z.
- Set terminal title.
- Display help text in options sidebar.
- Better colorscheme for Windows.

Page 15 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.