python-prompt-toolkit VS fish-shell

Compare python-prompt-toolkit vs fish-shell and see what are their differences.

python-prompt-toolkit

Library for building powerful interactive command line applications in Python (by prompt-toolkit)

fish-shell

The user-friendly command line shell. (by fish-shell)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
python-prompt-toolkit fish-shell
21 320
8,960 24,593
0.8% 0.9%
7.5 9.9
25 days ago 2 days ago
Python Rust
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

python-prompt-toolkit

Posts with mentions or reviews of python-prompt-toolkit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-09.
  • Is there a library that can give python-prompt-toolkit like completion for TUI?
    2 projects | /r/rust | 9 Apr 2023
    Ref. https://github.com/prompt-toolkit/python-prompt-toolkit and https://github.com/c-bata/go-prompt ?
  • Show HN: Replbuilder, quickly build a Python REPL CLI prompt
    5 projects | news.ycombinator.com | 19 Feb 2023
    > The purpose is not to do this however, the goal for a repl cli is usually to invoke a set of particular, already implemented commands, not on the fly python input and output. The implementation will be predefined and packaged, repl are only used to run a list of specific commands with arguments that implementation has already defined.

    That's a very strange definition for a REPL, I would just call that an (interactive) CLI. Maybe that's why you couldn't find anything when you were doing your search? I used python-prompt-toolkit [0] when building such interfaces. pgcli [1] is an example of such an interface built with prompt-toolkit.

    It has a lot of nice autocomplete and readline emulation options. Maybe it's something you can integrate with your project.

    [0] https://github.com/prompt-toolkit/python-prompt-toolkit

    [1] https://www.pgcli.com/

  • TUI library with Sixel support?
    3 projects | /r/learnpython | 27 Nov 2022
    Euporie uses prompt_toolkit as its TUI library. prompt_toolkit does not specifically support terminal graphics, but I've written various of custom components and modifications to enable images to be displayed using terminal graphics.
  • Why is the terminal input so weird?
    7 projects | news.ycombinator.com | 16 Nov 2022
    That bothered me too, the default function for Ctrl-W in ipython is unix-word-rubout from python-prompt-toolkit [1], which uses spaces for word boundaries. You can rebind it to backward-kill-word so it uses "not a letter nor a digit" as a word boundary.

    Here's a gist with my config (also binds shift-left/right arrow to move to previous space instead of visual select): https://gist.github.com/fratajczak/64e32421a43d3b8194d0409ce...

    [1]: https://github.com/prompt-toolkit/python-prompt-toolkit/blob...

  • Is there a library for creating interactive long running terminal applications?
    4 projects | /r/learnpython | 26 Mar 2022
  • improved repl for lua?
    8 projects | /r/lua | 28 Feb 2022
    When coding in python I've used ptpython repl based on prompt-toolkit which has been used in numerous CLI programs https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/PROJECTS.rst. I've also used mycli from that page. I've really enjoyed the UX of these. In addition to the syntax highlighting, auto/tab completions, (and maybe other enjoyable features) the vi-mode is amazingly helpful (for us vi folks) (it's probably got emacs bindings too). I would love to have all of this in a repl for lua.
  • A simple tui to launch gzdoom mods
    2 projects | /r/commandline | 14 Feb 2022
    That's an interesting approach. I was also thinking of using a more sophisticated framework than whiptail, maybe the PromptToolkit. I guess it then would be more similar to the idea of using a text editor. I certainly do think a TUI may be overkill yet it was also a good excuse to practice some bash scripting for me.
  • How to create terminal GUI?
    6 projects | /r/bash | 9 Feb 2022
  • Rich is a Python library for rich text and beautiful formatting in the terminal
    16 projects | news.ycombinator.com | 15 Jan 2022
    Try prompt_toolkit which is a Python library used by IPython among others: https://github.com/prompt-toolkit/python-prompt-toolkit
  • python-prompt-toolkit VS python-sploitkit - a user suggested alternative
    2 projects | 15 Jan 2022

fish-shell

Posts with mentions or reviews of fish-shell. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-22.
  • FAQ on the xz-utils backdoor – via a project dev
    1 project | news.ycombinator.com | 29 Mar 2024
    Reminds of the note at the bottom of Fish's releases. It's there because the build system cannot determine the current version for some reason. Hopefully that will go away now that they have switched to a different language / build system. The custom tarball is used by Arch Linux at the very least.

    https://github.com/fish-shell/fish-shell/releases/tag/3.7.1

    https://github.com/fish-shell/fish-shell/issues/7772#issueco...

    https://gitlab.archlinux.org/archlinux/packaging/packages/fi...

  • Oh My Zsh
    19 projects | news.ycombinator.com | 22 Jan 2024
  • Proposal for porting fish-shell from C++ to Rust
    1 project | news.ycombinator.com | 17 Jan 2024
  • Converting the Kernel to C++
    3 projects | news.ycombinator.com | 10 Jan 2024
    A recent practical example of the former: the fish shell re-wrote incrementally from C++ to Rust, and is almost finished https://github.com/fish-shell/fish-shell/discussions/10123

    An example of the latter: c2rust, which is a work in progress but is very impressive https://github.com/immunant/c2rust

    It currently translates into unsafe Rust, but the strategy is to separate the "compile C to unsafe Rust" steps and the "compile unsafe Rust to safe Rust" steps. As I see it, as it makes the overall task simpler, allows for more user freedom, and makes the latter potentially useful even for non-transpiled code. https://immunant.com/blog/2023/03/lifting/

  • Fish shell 3.7.0: last release branch before the full Rust rewrite
    9 projects | news.ycombinator.com | 1 Jan 2024
    And this discussion from November has an update on the progress: https://github.com/fish-shell/fish-shell/discussions/10123
  • Day 5 - More or less...
    3 projects | /r/linuxupskillchallenge | 7 Dec 2023
    We're using bash as our terminal shell for now (it is standard in many distros) but it is not the only one out there. If you want to test out zsh, fish or oh-my-zsh, you will see that there are a few differences and the features are usually the main differentiator. Try that, poke around.
  • Fish – Update on the Rust Port
    1 project | /r/patient_hackernews | 28 Nov 2023
    1 project | /r/hackernews | 28 Nov 2023
    7 projects | news.ycombinator.com | 26 Nov 2023
    They have a variety of reasons to move to rust, as outlined in their original rust discussion[1]. Mostly around finding other contributors, and adding an async/parallel mode they're comfortable with.

    [1] https://github.com/fish-shell/fish-shell/pull/9512

  • Devuan アップグレード: 4 から 5 Daedalus へ
    3 projects | dev.to | 4 Sep 2023

What are some alternatives?

When comparing python-prompt-toolkit and fish-shell you can also consider the following projects:

click - Python composable command line interface toolkit

powerlevel10k - A Zsh theme

rich - Rich is a Python library for rich text and beautiful formatting in the terminal.

starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

Turbo Vision - A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.

nushell - A new type of shell

textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

oh-my-fish - The Fish Shell Framework

asciimatics - A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations

xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.

colorama - Simple cross-platform colored terminal text in Python

tokyonight.nvim - 🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.