urwid
pytermgui
Our great sponsors
urwid | pytermgui | |
---|---|---|
19 | 49 | |
2,722 | 2,041 | |
1.1% | - | |
9.5 | 7.4 | |
8 days ago | about 2 months ago | |
Python | Python | |
GNU Lesser General Public License v3.0 only | 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.
urwid
-
Fx – Terminal JSON Viewer
Pretty cool! I actually wrote something VERY similar a couple of years ago: sless[1]. It's a tool for viewing json-based structured logs. Just like your tool, you can explore into a json object. The difference is, it expects the input to have many json objects, newline separated, and it shows few keys as a preview of the object, to make looking for something in the log easier. It's not quite complete but basic browsing works. It was mainly written to learn more about Urwid[2], a library similar to Curses.
1: https://github.com/dpedu2/sless
2: https://urwid.org/
-
Any guide to creating a terminal application?
In addition to the other great libraries already mentioned, since you're in Python you may want to consider urwid, it's really robust and has a lot of built-ins.
- Menus in Python
-
Grab raw keyboard inputs
To go full in on the latter case, people often use libraries like Cursive (akin to urwid for Python but without the horrendously confusing error messages caused duck typing) or tui.
-
Textual: The Definitive Guide - Part 1.
If you have experience with text user interfaces in the past, you might come across other frameworks such as urwid, curtsies, asciimatics, prompt-toolkit to name a few. Nevertheless, If you have not, you are just fine because you are in the right place to learn about TUIs in general and using Textual specifically. I’ll show you how to develop a wordle clone step by step.
- Is there a library for creating interactive long running terminal applications?
-
How can I make a TUI?
Check also urwid. It's more likely a modern text-based interface library for Python. https://github.com/urwid/urwid
-
What is the correct way to create a console application?
Curses seems difficult to use but you should investigate whether it works with what you want to do. https://urwid.org/ seems fun as an alternative.
-
Print colour in terminal
You can also take a look at https://urwid.org/
-
I looking for a TUI liberary/framework with good aesthetics.
urwid is Python, and looks good.
pytermgui
-
Using Textual to Build a ChatGPT TUI App
Several libraries, such as urwid or PyTermGUI, allow the development of TUI applications in Python. For enhancing the functionality and aesthetics of TUI apps, they offer some fundamental and more sophisticated utilities. But there is one package that is truly exceptional and might even be so amazing that it sparks a TUI renaissance (I really wanted to put "TUI renaissance" somewhere in this article).
-
How difficult is ncurses?
There are plenty of terminal UI libraries that are actually nice to work with. For Python, there's Textual and PyTermGUI. For Rust, there's ratatui and Cursive (or, if you want something a bit lower level, crosster or termion). For Go, there's bubbletea.
-
Any Good Recommendations for a Tutorial on PyTermGUI?
Talking about resources, their docs are pretty good and contains some examples too. Documentation: https://ptg.bczsalba.com/pytermgui.html
-
Create TUI's (Terminal User Interface) using Textual
Have you tried PyTermGUI? It looks promising, but I wonder if there are any pitfalls. I need to build a professional CLI for a robot, and half-baked packages just won't do.
-
Looking for Github projects with strong communities and Discords. Active and frequently mentoring new-comers.
While the community is relatively small right now, my TUI framework PyTermGUI has a lot of the attributes you're looking for! We don't currently have a section dedicated to this yet, but if you come to the discord I'm sure we can help you :)
- Version 7.2.0 brings automatically generated palettes using color theory!
- The brand-new TIM engine arrives with version 7.0.0!
-
Verison 6.3.0 has cometh, featuring the new InputField!
Check out the changelog here.
- Ask HN: Are there any high-level TUI tools?
-
Menus in Python
I suspect that the reason you didn't find much is that usually people need a whole textual user interface (or TUI). And there's quite a few libraries for those, like pytermgui or textual, and some more low-level tools in that area like prompt-toolkit
What are some alternatives?
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.
picotui - Lightweight, pure-Python Text User Interface (TUI) widget toolkit with minimal dependencies. Dedicated to the Pycopy project.
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
blessed - Blessed is an easy, practical library for making python terminal apps
py_cui - A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Toga - A Python native, OS native GUI toolkit.
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
kivy - Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
black - The uncompromising Python code formatter
vtm - Text-based desktop environment