Prompt-toolkit

Latest version: v3.0.50

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

Scan your dependencies

Page 8 of 22

3.0.8

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

New features:
- Optional output formatting using Black.
- Optional pager for displaying outputs that don't fit on the screen.
- Added --light-bg and --dark-bg flags to automatically optimize the brightness
of the colors according to the terminal background.
- Add `PTPYTHON_CONFIG_HOME` for explicitly setting the config directory.
- Show completion suffixes (like '(' for functions).

Fixes:
- Fix dictionary completion on Pandas objects.
- Stop using deprecated Jedi functions.

3.0.7

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

New features:
- Option to show/hide private attributes during a completion
- Added `insert_blank_line_after_input` option similar to
`insert_blank_line_after_output`.

Fixes:
- Fixed some formatting issues of `__pt_repr__`.
- Abbreviate completion meta information for dictionary completer if needed.

3.0.6

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

New features:
- (Experimental) support for `__pt_repr__` methods. If objects implement this
method, this will be used to print the result in the REPL instead of the
normal `__repr__`.
- Added py.typed file, to enable type checking for applications that are
embedding ptpython.

3.0.5

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

Fixes:
- Handle bug in dictionary completion when numeric keys are used.

3.0.4

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

New features:
- Allow leading whitespace before single line expressions.
- Show full syntax error in validator.
- Added `vi_start_in_navigation_mode` and `vi_keep_last_used_mode` options.

Fixes:
- Improved dictionary completion: handle keys that contain spaces and don't
recognize numbers as variable names.
- Fix in exit confirmation.

3.0.3

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

Fixes:
- Sort attribute names for `DictionaryCompleter` and move underscored
attributes to the end.
- Handle unhandled exceptions in `get_compiler_flags`.
- Improved `run_async` code.
- Fix --version parameter.

Page 8 of 22

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.