rich
python-prompt-toolkit
Our great sponsors
rich | python-prompt-toolkit | |
---|---|---|
127 | 19 | |
41,857 | 8,147 | |
1.2% | 0.9% | |
9.8 | 6.5 | |
8 days ago | 6 days ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
rich
-
tempy: render beautiful weather data to your terminal
- rich, a base rich text library with tons of raw capabilities and convenience classes/functions. `tempy` makes use of `rich` for all its rendering capabilities.
-
Ask HN: What Are You Working on This Year?
Both are python libraries written by Will McGugan, designed to bring stylized text formatting to terminals and consoles.
-
My first Python App
You should check out https://github.com/Textualize/rich to enhance your terminal outputs.
- Como desarrollar una aplicación de cmd con interfaz estática
-
My resume is boring
To keep things simple my choice fell on console output, but I knew Python has some nice libraries about formatting text in the terminal such as rich so my derived classes were refactored to implement console rendering.
-
Build Simple CLI-Based Voice Assistant with PyAudio, Speech Recognition, pyttsx3 and SerpApi
rich
-
Chatting with Will McGugan: From Side Project To Startup
Docs
Will McGugan is among the most well-known Python developers. He's the author of Rich, a library for formatting output in the terminal. It's used, among others, by pip, and has more than 40K stars on GitHub. In 2021, Will started building Textual, a TUI (text user interface) framework based on Rich. At the end of the year, he founded the company Textualize.
-
Copy large file progress
I don't know if this will work for your case, but Rich has easy progress bars. The new windows terminal uses it for loading bars for pip.
I found this code in the rich/examples folder in the Github.
python-prompt-toolkit
-
TUI library with Sixel support?
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?
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?
-
improved repl for lua?
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
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?
-
Rich is a Python library for rich text and beautiful formatting in the terminal
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 20222 projects | 15 Jan 2022
-
I looking for a TUI liberary/framework with good aesthetics.
https://github.com/prompt-toolkit/python-prompt-toolkit is good if you want to create your own CLI inside your TUI (command line within a TUI that can do fancy stuff like Emacs keybindings and tab completion). It's very powerful.
What are some alternatives?
tqdm - A Fast, Extensible Progress Bar for Python and CLI
click - Python composable command line interface toolkit
colorama - Simple cross-platform colored terminal text in Python
blessed - Blessed is an easy, practical library for making python terminal apps
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.
textual - Textual is a TUI (Text User Interface) framework for Python inspired by modern web development.
asciimatics - A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
alive-progress - A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
WindTerm - A professional cross-platform SSH/Sftp/Shell/Telnet/Serial terminal.
notcurses - blingful character graphics/TUI library. definitely not curses.
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.