pytermgui
no_color
pytermgui | no_color | |
---|---|---|
50 | 31 | |
2,407 | 273 | |
1.8% | 1.8% | |
5.5 | 6.7 | |
3 months ago | 20 days ago | |
Python | HTML | |
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.
pytermgui
-
5 Best Python TUI Libraries for Building Text-Based User Interfaces
4.Pytermgui Pytermgui Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
-
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?
no_color
-
"Rules" that terminal programs follow
> The default configurations of most terminals includes illegible color combinations
This hasn’t been my experience - while I’m not familiar with a wide breadth of terminal emulators, all the ones I’ve used have a default black background with the ANSI colors being very bright, making them clearly visible. I would again say that if a terminal emulator has some of the standard ASCII colors to not be visible on their default background.
And of course, once you start changing the background color then you can’t make any assumptions about which of the user’s colors will be visible - which is why, as you say, the background color should not be changed without a very good reason, and if the bg is set, it should be very easy to switch it to either a “dark mode” or “light mode” to make colors visible.
But some assumptions must be made in order to make any use of color, and “the 6 standard ANSI colors (red, green, yellow, magenta, cyan, blue) are visible on the user’s background” seems like it has to be the safest assumption.
I am in support of terminal programs respecting a universal configuration to disable color: https://no-color.org/
- NO_COLOR
-
Terminal Colours Are Tricky
I was for a while faking a 16-color terminal without support for 256 colors just to avoid this configuration hell. I also tried https://no-color.org/ because I’d rather have no colors than bad colors.
These days I just gave up and manually configure most apps to use ANSI colors (e.g. fzf etc have command switches for that), and let Vim and Emacs be the only non-ANSI apps which are instead set to match the colorscheme I use in the rest of the terminal. (Although stuff like vim-dim let’s you go one step further if you want.)
- Techniques I Use to Create a Great User Experience for Shell Scripts
-
Eza: A modern, maintained replacement for ls
I'm totally the other way around, I rely on colorized output heavily.
But! There's supposed to be a solution to this, set $NO_COLOR to some value. https://no-color.org
Totally reasonable to file a bug report against tools which don't check and respect that env variable.
-
TTE: Terminal Text Effects
It'd be good if it recognised https://no-color.org/ and just didn't do anything. Or maybe replaced with
Maybe it does, I didn't check.
- Starship.rs: minimal, fast prompt for any shell
-
Unix Structured Concurrency
This sounds like a really good pattern, and something that deserves to become a modern standard (like https://no-color.org/).
I feel like this should be made opt in somehow. If you are a noninteractive process and stdin is a tty then you probably shouldn't be swallowing input. I frequently blind-type the next command while a long running command is active, because well behaved noninteractive programs don't swallow input from stdin.
- Command-line software which adds ANSI color to its output by default should check for a NO_COLOR environment variable that, when present and not an empty string (regardless of its value), prevents the addition of ANSI color.
- No_color
What are some alternatives?
textual - Lean TUI application framework for Python. Build sophisticated terminal user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
no-ansi - A single-function CLI tool to strip escape codes from input
py_cui - A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Clipboard - 😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
colorized-logs - tools for logs with ANSI color