textual
typer
Our great sponsors
textual | typer | |
---|---|---|
149 | 86 | |
23,264 | 13,353 | |
2.3% | - | |
9.9 | 6.7 | |
about 22 hours ago | 1 day ago | |
Python | Python | |
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.
textual
- Harlequin: SQL IDE for Your Terminal
-
Should you add screenshots to documentation?
The Textual project has a lot of screenshots in its documentation. These screenshots are built with the docs, so they are always up to date.
-
PysimpleGUI
Textual[0] does this for CLI apps. That’s not for full GUI apps, but it’s very DOM-like, uses CSS selectors, etc. and a cool option when it meets your needs.
-
"<ESC>[31M"? ANSI Terminal security in 2023 and finding 10 CVEs
https://jupyterbook.org/en/stable/content/code-outputs.html#...
`less -R` is not the default.
FWIW, textual (and urwid) does ANSII escape codes well: https://github.com/Textualize/textual
touch file$'\n'name
-
logmerger - Text UI to view multiple log files with unified time scale
After installing logmerger, you can run a self-contained demo by running logmerger --demo, to view two log files before and after they are merged, and to play with the user-interface features provided by textual.
-
Ask HN: Why Did Python Win?
I think it just survived naturally, filling in the cracks left by Java / C++.
And not the era of Textual (https://textual.textualize.io/) is here, python may get the spotlight even more.
- FLaNK Stack Weekly for 21 August 2023
-
Textual: Rapid Application Development Framework for Python
Did a cursory dive through, check: https://textual.textualize.io/tutorial/ and https://github.com/Textualize/textual/blob/main/docs/example...
...what have people had success with in golang-world? Anything reasonably equivalent someone could recommend? There's a fair amount of "stuff" for TUI's in golang, the thing that's very attractive about 'textualize' is it feels very "web-browser-y" and has a nice (scrollable!) table view.
`tview` seems interesting (eg: check `brew install dbui`), but feels a bit more like _you're_ doing all the imperative `if KeyPress.A: do_something()` instead of declarative, nesting navigation, etc. (perhaps that's the difference between an "application-centric/SPA" view of "control all the things!" vs. a document centric: "add components to a page and let them flow").
Any feedback on the items in this list? https://codeberg.org/tecras/awesome-go#advanced-console-uis
-
Using Textual to Build a ChatGPT TUI App
I also highly encourage you to take a look at the Textual documentation, code examples, and Will's Twitter.
typer
- Copilot for your GitHub stars
-
Things I've learned about building CLI tools in Python
I have been using Typer on every one of my CLI projects which uses Click under the hood. The documentation is fantastic, the CLI app it produces looks great and lets you create things quickly. I high recommend it.
-
Things to do with standalone script
Adding CLI capabilities. My preferred library here is typer.
-
The different uses of Python type hints
Similarly for Typer, which is literally "the FastAPI of CLIs"[1]. Handy to type your `main` parameters and have CLI argument parsing. For more complicated cases, it's a wrapper around Click.
-
Command line parser library, which one do you like the most, regardless of language?
interesting that you hate python, but love Click. Did you try Typer which uses Click underneath?
-
I made a file manager in python
Try to make it into a command line tool? check https://typer.tiangolo.com/ for example
- How does "python3 *file* -*letter* work?
-
How to make a CLI?
I used this template repo to make a bash cli https://github.com/SierraSoftworks/bash-cli then I made a brew formula to make it installable. It provide a nice way to make a cli with nested commands like git. As others mentioned other languages like python have great support for making nice clis see https://typer.tiangolo.com/ for an example framework in python. I chose bash because packaging a python cli for a private brew package is a pain and 99% of what I needed the cli to do was inkoke other clis, so bash made sense for my case.
-
I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me
Very cool. I’ve been using Typer lately. Easy to give a library a cli without too much boilerplate.
-
Just released my much-improved YouTube archiver as v1.2 🎉🎉
Check out Typer for the command line tooling, might make it a bit easier to maintain later on!
What are some alternatives?
click - Python composable command line interface toolkit
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
pytermgui - Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
urwid - Console user interface library for Python (official repo)
asciimatics - A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
npyscreen - Automatically exported from code.google.com/p/npyscreen
cement - Application Framework for Python