Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Prompt Toolkit 3.0 — prompt_toolkit 3.0.43 documentation #937

Open
1 task
ShellLM opened this issue Nov 7, 2024 · 1 comment
Open
1 task
Labels
CLI-UX Command Line Interface user experience and best practices prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets

Comments

@ShellLM
Copy link
Collaborator

ShellLM commented Nov 7, 2024

Python Prompt Toolkit 3.0

Snippet

Skip to docs navigation Skip to main content

prompt_toolkit

python-prompt-toolkit
3.0.48
9349
716
master
  INDEX

Gallery
Getting started
Toggle menu contentsUpgrading
Printing (and using) formatted text
Asking for input (prompts)
Dialogs
Progress bars
Building full screen applications
Toggle menu contentsTutorials
Toggle menu contentsAdvanced topics
Reference
Related projects

Python Prompt Toolkit 3.0

prompt_toolkit is a library for building powerful interactive command line and terminal applications in Python.

It can be a very advanced pure Python replacement for GNU readline, but it can also be used for building full screen applications.

Some features:

  • Syntax highlighting of the input while typing. (For instance, with a Pygments lexer.)
  • Multi-line input editing.
  • Advanced code completion.
  • Selecting text for copy/paste. (Both Emacs and Vi style.)
  • Mouse support for cursor positioning and scrolling.
  • Auto suggestions. (Like fish shell.)
  • No global state.

Like readline:

  • Both Emacs and Vi key bindings.
  • Reverse and forward incremental search.
  • Works well with Unicode double width characters. (Chinese input.)

Works everywhere:

  • Pure Python. Runs on all Python versions starting at Python 3.6. (Python 2.6 - 3.x is supported in prompt_toolkit 2.0; not 3.0).
  • Runs on Linux, OS X, OpenBSD and Windows systems.
  • Lightweight, the only dependencies are Pygments and wcwidth.
  • No assumptions about I/O are made. Every prompt_toolkit application should also run in a telnet/ssh server or an asyncio process.

Have a look at the gallery to get an idea of what is possible.

Getting started

Go to getting started and build your first prompt. Issues are tracked on the Github project.

Thanks to:

A special thanks to all the contributors for making prompt_toolkit possible.

Also, a special thanks to the Pygments and wcwidth libraries.

Suggested labels

None

@ShellLM ShellLM added CLI-UX Command Line Interface user experience and best practices prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets labels Nov 7, 2024
@ShellLM
Copy link
Collaborator Author

ShellLM commented Nov 7, 2024

Related content

#762 similarity score: 0.86
#737 similarity score: 0.86
#743 similarity score: 0.86
#825 similarity score: 0.86
#706 similarity score: 0.85
#808 similarity score: 0.85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI-UX Command Line Interface user experience and best practices prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets
Projects
None yet
Development

No branches or pull requests

1 participant