Top 23 Python Command-line Tool Projects
-
thefuck
Magnificent app which corrects your previous console command.
Project mention: The Fuck: Correct errors in previous console commands | news.ycombinator.com | 2021-02-22 -
httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
So, in our case here, we got 104.45.73.37. Let’s issue a few request (either with a browser or a tool like httpie– which I use all the time) against the resulting URL http://104.45.73.37:8080/contacts.
-
Scout
Get performance insights in less than 4 minutes. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
-
Python Fire
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Project mention: Explaining FastAPI and Typer Dependency Injection, and rolling your own in Python | dev.to | 2021-01-25Typer is for building Python command-line tools. Often you want to be able to call python scripts from the command line with extra arguments to do all manner of automation tasks. Python has a low-level method of fetching the values passed from the command-line using sys.arv which contains a list of arguments; and a high-level mehtod of building a command-line interface (allowing for optional arguments, help text, etc) using the argparser module. Aside from this, there are also plenty of other libraries that provide ways of building CLIs, including Google's Fire which is what I was using previously.
-
cookiecutter
A command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, VueJS projects.
Project mention: Show HN: Rust-starter, a boilerplate to build Rust CLI applications | news.ycombinator.com | 2021-01-25Might be better to turn this into a cookiecutter template:
-
Gooey
Turn (almost) any Python command line program into a full GUI application with one line
Project mention: RE-WX: A Python library for building modern native desktop applications with WXPython | reddit.com/r/Python | 2021-01-18This is something which grew out of another library I work on called Gooey. After 6 years of tinkering on that thing, I was fed up with the clunky workflows forced upon you by WXPython's awkward C++ wrappers.
-
aws-cli
Universal Command Line Interface for Amazon Web Services
Project mention: APi Response Error: "Policies must be valid JSON and the first byte must be '{'" When Trying To Adjust CORS | reddit.com/r/aws | 2021-02-23When you say you are following that documentation, are you actually doing this using the CORS policy editor in the console? When I looked up this error I saw it in reference to the put-bucket-policy api: https://github.com/aws/aws-cli/issues/2779
-
click
Python composable command line interface toolkit
-
mycli
A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
-
pgcli
Postgres CLI with autocompletion and syntax highlighting
Project mention: Commandline Database Clients with Autocompletion and Syntax Highlighting | news.ycombinator.com | 2021-02-18In what way did it blow up? You must have hit a bug, using .pg_service should work. Would you care to open an issue on https://github.com/dbcli/pgcli/issues or just dump the error message here so we can investigate?
-
howdoi
instant coding answers via the command line
-
HTTP Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
And use http-prompt, because it's awesome: https://github.com/httpie/http-prompt
-
docopt
Pythonic command line arguments parser, that will make you smile
-
python-prompt-toolkit
Library for building powerful interactive command line applications in Python
The Console and Layout api looks really simple for creating dashboards.
Another option for full-screen apps is Python Prompt Toolkit[1], which also handles keyboard and mouse input and be used to implement editors[2].
-
SAWS
A supercharged AWS command line interface (CLI).
-
typer
Typer, build great CLIs. Easy to code. Based on Python type hints.
Project mention: My preferred .NET console stack – An opinionated view on .NET console apps | news.ycombinator.com | 2021-01-15Click is great and a feature-rich option. But recommend checking out Typer, which is even simpler if you're already using type annotations. [0]
-
PathPicker
PathPicker accepts a wide range of input -- output from git commands, grep results, searches -- pretty much anything. After parsing the input, PathPicker presents you with a nice UI to select which files you're interested in. After that you can open them in your favorite editor or execute arbitrary commands.
-
percol
adds flavor of interactive filtering to the traditional pipe concept of UNIX shell
-
doitlive
Because sometimes you need to do it live
-
asciimatics
A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Project mention: best CLI (command line interface) tools or modules? | reddit.com/r/Python | 2021-01-12Just bumped to asciimatics yesterday. You can do some cool CLI stuff with it: https://github.com/peterbrittain/asciimatics
-
colorama
Simple cross-platform colored terminal text in Python
Project mention: What are some of your gold standard Python open source repos you discovered here or elsewhere that have very high quality, commented and understandable code that use best practices? | reddit.com/r/Python | 2021-01-25Looks really cool! Way more functionality than I'd ever need. I've been using colorama for color coding info, warning, and error messages in my Python projects. No complaints. From the feature list of rich it sounds like it probably pulls in a lot more dependencies?
-
plumbum
Plumbum: Shell Combinators
-
kube-shell
Kubernetes shell: An integrated shell for working with the Kubernetes
⏬ Download kube-shell click here
-
bashplotlib
plotting in the terminal
Index
What are some of the best open-source Command-line Tool projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | thefuck | 59,078 |
2 | httpie | 49,944 |
3 | Python Fire | 18,690 |
4 | cookiecutter | 13,903 |
5 | Gooey | 11,112 |
6 | aws-cli | 10,695 |
7 | click | 10,438 |
8 | mycli | 9,408 |
9 | pgcli | 9,397 |
10 | howdoi | 8,751 |
11 | HTTP Prompt | 8,044 |
12 | docopt | 7,296 |
13 | python-prompt-toolkit | 6,860 |
14 | SAWS | 4,699 |
15 | typer | 4,653 |
16 | PathPicker | 4,542 |
17 | percol | 2,994 |
18 | doitlive | 2,914 |
19 | asciimatics | 2,589 |
20 | colorama | 2,381 |
21 | plumbum | 2,133 |
22 | kube-shell | 1,823 |
23 | bashplotlib | 1,516 |