Skip to content

Upgrading prompt_toolkit 0.5 to 0.6

Unknown0.5 → 0.6

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: field CommandLine.code_cls
  • removed: field CommandLine.history_cls
  • removed: field CommandLine.inputstream_cls
  • removed: field CommandLine.inputstream_handler_cls
  • removed: field CommandLine.line_cls
  • removed: field CommandLine.prompt_cls
  • removed: field CommandLine.renderer_cls
  • removed: field CommandLine.style_cls
  • added: field CommandLine.code_factory
  • added: field CommandLine.history_factory
  • added: field CommandLine.input_timeout
  • added: field CommandLine.inputstream_factory
  • added: field CommandLine.inputstream_handler_factory
  • added: field CommandLine.line_factory
  • added: field CommandLine.prompt_factory
  • added: field CommandLine.renderer_factory
  • added: field CommandLine.style
  • added: method CommandLine.on_read_input_end()
  • added: method CommandLine.on_read_input_start()
  • added: method CommandLine.run_in_executor(callback)
  • removed: field Code.lexer_cls
  • changed: method CodeBase.get_completions(recursive=…) → method CodeBase.get_completions()
  • added: field Code.lexer
  • added: class IPythonCode(PythonCode)
  • added: class IPythonCommandLine(PythonCommandLine)
  • added: class IPythonPrompt(PythonPrompt)
  • added: class InteractiveShellEmbed(_InteractiveShellEmbed)
  • added: constructor IPythonCode(document, globals, locals, magics_manager)
  • added: constructor IPythonCommandLine(ipython_shell, *a, **kw)
  • added: constructor InteractiveShellEmbed(*a, **kw)
  • added: function embed(**kwargs)
  • added: method IPythonCode.get_completions()
  • added: method IPythonCode.validate()
  • added: method IPythonCommandLine.code_factory(document)
  • added: method IPythonCommandLine.prompt_factory(render_context)
  • added: method InteractiveShellEmbed.raw_input(prompt=…)
  • added: property IPythonCode.lexer
  • added: class AutoCompletionStyle
  • added: class PythonCommandLine(CommandLine)
  • added: constructor PythonCommandLine(globals=…, locals=…, vi_mode=…, stdin=…, stdout=…, history_filename=…, style=…, autocompletion_style=…)
  • added: field AutoCompletionStyle.EXTENDED_POPUP_MENU
  • added: field AutoCompletionStyle.HORIZONTAL_MENU
  • added: field AutoCompletionStyle.NONE
  • added: field AutoCompletionStyle.POPUP_MENU
  • added: field PythonCommandLine.enable_concurency
  • added: field PythonCommandLine.line_factory
  • added: method PythonCommandLine.code_factory(document)
  • added: method PythonCommandLine.history_factory()
  • added: method PythonCommandLine.on_input_timeout(code_obj)
  • added: method PythonCommandLine.prompt_factory(render_context)
  • added: property PythonCommandLine.inputstream_handler_factory
  • removed: class PythonCommandLine(CommandLine)
  • removed: constructor PythonCommandLine(globals=…, locals=…, vi_mode=…, stdin=…, stdout=…, history_filename=…, style_cls=…)
  • removed: field PythonCommandLine.enable_concurency
  • removed: field PythonCommandLine.line_cls
  • removed: method PythonCommandLine.history_cls()
  • removed: method PythonCommandLine.on_input_timeout(code_obj)
  • removed: method PythonCommandLine.start_repl()
  • removed: property PythonCommandLine.inputstream_handler_cls
  • changed: function embed(globals=…, locals=…, vi_mode=…, history_filename=…, no_colors=…) → function embed(globals=…, locals=…, vi_mode=…, history_filename=…, no_colors=…, autocompletion_style=…)
  • added: class PythonRepl(PythonCommandLine)
  • added: method PythonRepl.start_repl()
  • changed: method ShellCode.get_completions(recursive=…) → method ShellCode.get_completions()
  • removed: method ShellPrompt.get_help_tokens()
  • added: property ShellPrompt.tokens_after_input
  • changed: function get_input(message, raise_exception_on_abort=…, multiline=…) → function get_input(message, raise_exception_on_abort=…, multiline=…, is_password=…)
  • added: method Document.find_all(sub)
  • added: method Document.get_word_before_cursor()
  • added: method InputStreamHandler.do_traditional_complete()
  • changed: constructor Line(renderer=…, code_cls=…, prompt_cls=…, history_cls=…) → constructor Line(code_factory=…, history_factory=…)
  • added: class ClearScreen(Exception)
  • added: field Line.tempfile_suffix
  • removed: class PromptBase(object)
  • removed: constructor PromptBase(line, code)
  • removed: field Prompt.default_prompt_text
  • removed: method Prompt.get_arg_prompt()
  • removed: method Prompt.get_default_prompt()
  • removed: method Prompt.get_isearch_prompt()
  • removed: method Prompt.get_prompt()
  • removed: method PromptBase.get_help_tokens()
  • removed: method PromptBase.get_prompt()
  • removed: method PromptBase.get_second_line_prefix()
  • changed: class Prompt(PromptBase) → class Prompt(object)
  • added: class BracketsMismatchProcessor(object)
  • added: class HorizontalCompletionMenu(object)
  • added: class PasswordProcessor(object)
  • added: class PopupCompletionMenu(object)
  • added: class TokenList(object)
  • added: constructor PasswordProcessor(char=…)
  • added: constructor PopupCompletionMenu(max_height=…)
  • added: constructor Prompt(render_context)
  • added: constructor TokenList(iterator=…)
  • added: field BracketsMismatchProcessor.error_token
  • added: field PopupCompletionMenu.completion_token
  • added: field PopupCompletionMenu.current_completion_token
  • added: field PopupCompletionMenu.progress_bar_token
  • added: field PopupCompletionMenu.progress_button_token
  • added: field Prompt.completion_menu
  • added: field Prompt.input_processors
  • added: field Prompt.isearch_composer
  • added: field Prompt.prompt_text
  • added: method BracketsMismatchProcessor.process_tokens(tokens)
  • added: method HorizontalCompletionMenu.write(screen, complete_cursor_position, complete_state)
  • added: method PasswordProcessor.process_tokens(tokens)
  • added: method PopupCompletionMenu.get_menu_item_tokens(completion, is_current_completion, menu_width)
  • added: method PopupCompletionMenu.get_menu_width(complete_state)
  • added: method PopupCompletionMenu.write(screen, complete_cursor_position, complete_state)
  • added: method Prompt.create_left_input_margin(screen, row)
  • added: method Prompt.write_after_input(screen)
  • added: method Prompt.write_before_input(screen)
  • added: method Prompt.write_input(screen)
  • added: method Prompt.write_menus(screen)
  • added: method Prompt.write_to_screen(screen, last_screen_height)
  • added: method TokenList.append(val)
  • added: property Prompt.arg_prompt
  • added: property Prompt.default_prompt
  • added: property Prompt.input_tokens
  • added: property Prompt.isearch_prompt
  • added: property Prompt.tokens_after_input
  • added: property Prompt.tokens_before_input
  • added: property Prompt.tokens_in_left_margin
  • added: property TokenList.text
  • changed: constructor RenderContext(prompt, code_obj, accept=…, abort=…, highlight_regions=…, complete_state=…, validation_error=…) → constructor RenderContext(line, code_obj, accept=…, abort=…, highlighted_characters=…, complete_state=…, validation_error=…)
  • removed: field Renderer.highlight_current_line
  • removed: field Renderer.show_complete_menu
  • removed: method Renderer.get_width()
  • changed: constructor Renderer(stdout=…, style=…) → constructor Renderer(prompt_factory=…, stdout=…, style=…)
  • added: method Renderer.get_cols()
  • added: method Renderer.reset()