Our great sponsors
|7 days ago||30 days ago|
|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.
How to format output for a stand-alone display screen? Larger numbers, colors, redrawing the screen from the top left instead of printing a new line every time?
2 projects | /r/learnpython | 30 May 2023
If you are looking for something more flexible that just printing to a terminal, take a look at Asciimatics and textual. Both are available from Pypi.
Ratatui: Build rich terminal user interfaces
2 projects | /r/rust | 30 May 2023
As someone that use both Python and Rust, it's hard to motivate myself to write TUI in Rust, because with Python we have the amazing textual.
BFS for shortest path
2 projects | /r/AskProgramming | 27 May 2023
Show HN: Trogon – An automatic TUI for command line apps
11 projects | news.ycombinator.com | 21 May 2023
I would also be interested in an argparse equivalent of this for my tool Library
coBib 4.0: a modern UI using Textualize libraries
4 projects | /r/Python | 20 May 2023
Today I released coBib 4.0, my console bibliography manager written in Python, which now uses rich and textual to provide a cohesive and modern user experience in both its CLI and TUI.
16 projects | /r/Python | 8 May 2023
I don't think it is exactly what you're looking for, but Textual will be supporting something close to what I think you're after, soon. https://github.com/Textualize/textual
Ink: React for interactive command-line apps
24 projects | news.ycombinator.com | 8 May 2023
For Golang there is Bubbletea , Textual  for Python and tui-rs for Rust .
Tried Textual to build a simple TUI - Skylab (a tool to track upcoming space launches)
2 projects | /r/Python | 3 May 2023
I guess you looked at it a while ago because the docs are quite detailed with lots of examples.
How difficult is ncurses?
7 projects | /r/commandline | 17 Apr 2023
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.
A beautiful TUI periodic table for GNU/Linux terminals (ptable) in C
2 projects | /r/commandline | 12 Apr 2023
Concerning your roadmap, you might wanna take some inspiration from Textual, it's a really mordern approach to TUIs. I understand that the level of abstraction is high and might be tasking to implement many of the ideas in there in C... and please fgs, don't think about doing the CSS shit.
The different uses of Python type hints
6 projects | news.ycombinator.com | 15 Apr 2023
Similarly for Typer, which is literally "the FastAPI of CLIs". 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?
3 projects | /r/AskProgramming | 7 Apr 2023
interesting that you hate python, but love Click. Did you try Typer which uses Click underneath?
I made a file manager in python
2 projects | /r/Python | 27 Mar 2023
Try to make it into a command line tool? check https://typer.tiangolo.com/ for example
How does "python3 *file* -*letter* work?
2 projects | /r/learnpython | 26 Mar 2023
How to make a CLI?
2 projects | /r/bash | 17 Mar 2023
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
11 projects | /r/Python | 3 Mar 2023
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 🎉🎉
2 projects | /r/Python | 5 Jan 2023
Check out Typer for the command line tooling, might make it a bit easier to maintain later on!
What's the best thing/library you learned this year ?
12 projects | /r/Python | 16 Dec 2022
tried typer? built on top of click. i still use mostly argparse but started using typer as well. so far so good
Create Beautiful CLI Tools using Typer
3 projects | dev.to | 11 Dec 2022
In this post i will discuss about how to create beautiful CLI Tools using library call typer with this library we can create amazing CLI Tools with that
Useful Python Modules for us
11 projects | /r/savedForMS | 4 Dec 2022
pdbpp: Improved pdb boltons: assorted python addtions twisted: event driven networking framework sorcery: Dark magic in python, things know where+how they are being called, helps reducing boilerplate sh: Better alternative for subprocess module, much more pythonic taskipy: npm run scipt_name like functionality snoop: pdb lite, record+replay function steps birdseye: graphical debugger remote-pdb: easy pdb from inside containers typer: wrapper around click for simpler code for CLIs arrow: Always TZ aware datetimes, plus more features more-itertools: more functions for iterators pydantic: data validation + dataclasses loguru: better logging notifiers: sending notifications from python
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
asciimatics - A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
urwid - Console user interface library for Python (official repo)
cement - Application Framework for Python
docopt - Pythonic command line arguments parser, that will make you smile