rich
DearPyGui
rich | DearPyGui | |
---|---|---|
153 | 257 | |
48,807 | 12,905 | |
0.9% | - | |
8.4 | 6.6 | |
15 days ago | about 1 month ago | |
Python | C++ | |
MIT License | MIT 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
-
Things I've learned building a modern TUI Framework
> Personally I found Textual a little weird to use, but better than ncurses.
Out of curiosity, have you looked at it's sibling project "rich"?
https://github.com/Textualize/rich
Seems like it provides a TUI toolkit as well, and it looks a bit less weird than the approach Textual uses.
Was thinking of trying it out with a side project recently, but got pulled onto some other stuff instead so haven't yet started. Nor made the choice between them. ;)
-
Ps aux written in bash without ever forking
I recently used the rich library to print tables in terminal.
https://github.com/Textualize/rich
-
Wat – Deep inspection of Python objects
Right! I usually use rich's print [1] for this kind of thing too, which I chose after testing a few other libraries that do pretty printing.
--
1: https://github.com/Textualize/rich?tab=readme-ov-file#rich-p...
-
A Simple Instagram Tracking Script Written in Python
Rich
- Ask HN: Interesting TUIs (text user interfaces), maybe forgotten ones?
- Rich is a Python library for rich text and beautiful formatting in the terminal
-
Neat Parallel Output in Python
There is an open issue [1] on GitHub to make it more modular and get rid of markdown and syntax highlighting but I have no hope for rich to get more minimal.
[1]: https://github.com/Textualize/rich/issues/2277
-
Ask HN: Programmers and Technologists in Scotland
I hope he doesn't mind, but the creator of Rich and Textualize is a good guy, and Scottish: https://www.willmcgugan.com/about/
https://www.textualize.io/
https://github.com/Textualize/rich
-
Python 3.12
They keep getting improved error messaging and this is one of my favorite features. But I'd love if we could get some real rich text. Idk if anyone else uses rich, but it has infected all my programs now. Not just to print with colors, but because it makes debugging so much easier. Not just print(f"{var=}") but the handler[0,1]. Color is so important to these types of things and so is formatting. Plus, the progress bars are nice and have almost completely replaced tqdm for me[2]. They're just easier and prettier.
[0] https://rich.readthedocs.io/en/stable/logging.html
[1] Try this example: https://github.com/Textualize/rich/blob/master/examples/exce...
[2] Side note: does anyone know how to get these properly working when using DDP with pytorch? I get flickering when using this and I think it is actually down to a pytorch issue and how they're handling their loggers and flushing the screen. I know pytorch doesn't want to depend on rich, but hey, pip uses rich so why shouldn't everyone?
-
colors.crumb - first Crumb usable. Extending Crumb with basic terminal styling and RGB, HEX, ANSI conversion functions.
colors.crumb extends Crumb with basic terminal styling functions and RGB, HEX, ANSI conversion functions. It is in the realm of JavaScript's chalk and Python's rich but slightly more functional 😉.
DearPyGui
-
PysimpleGUI
For native GUI, DearPyGui[0] as modern as you can.
For browser web-based GUI, you can use nicegui[1]
[0] -- https://github.com/hoffstadt/DearPyGui
[1] -- https://github.com/zauberzeug/nicegui
-
Need help with text alignment
If it's just to align text in the centre or to the right of a box, you could use a button and, by using theming, hide the fact that it's a button. https://github.com/hoffstadt/DearPyGui/issues/1111
-
Which GUI module is better in Python? tkinter or PyQt or kivy?
Personally, i like PyQt or PySide they have basically everything you need to make a proper app or even simple apps, but there is another DearPyGui this is basically python version of imgui the c++ library, it provides some good customization options and can be used for simple or complex projects too, their discord is also very helpful.
-
Dynamic plot
There are some examples in the showcase as well. https://github.com/hoffstadt/DearPyGui/wiki/Dear-PyGui-Showcase
- Segfault when running on MacOS when refreshing static textures
-
What to look for in a GUI?
I'm a big fan of DearPyGUI
-
Centering text in window/
Use a button and set width of the button equal to the width of the window. Using theming to set the button text alignment to center. A comparable solution, for aligning to the right, can be found here. https://github.com/hoffstadt/DearPyGui/issues/1111
-
What tools are available to begin building a GUI for python?
I was using PyQt5/PySide which will give you a nice native look but I eventually shifted over to DearPyGui for most of my smaller utilities. Its just faster for me. You will get more options and freedom with PyQt/PySide though and can use QT Designer to design your interfaces pretty easily.
- How to play video file with audio with DearPyGUI (Python)?
- Is it possible to animate a Node Editor window?
What are some alternatives?
tqdm - :zap: A Fast, Extensible Progress Bar for Python and CLI
PySimpleGUI - Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.
colorama - Simple cross-platform colored terminal text in Python
kivy - Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
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.
imnodes - A small, dependency-free node editor for dear imgui
blessed - Blessed is an easy, practical library for making python terminal apps
pywebview - Build GUI for your Python program with JavaScript, HTML, and CSS
alive-progress - A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
streamlit - Streamlit — A faster way to build and share data apps.