Python Command-line Tools

Open-source Python projects categorized as Command-line Tools

Top 23 Python Command-line Tool Projects

  • GitHub repo 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
  • GitHub repo 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

    Project mention: Getting started with KrakenD on Kubernetes / AKS | dev.to | 2021-02-17

    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.

  • GitHub repo 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-25

    Typer 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.

  • GitHub repo 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-25

    Might be better to turn this into a cookiecutter template:

    https://github.com/cookiecutter/cookiecutter

  • GitHub repo 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-18

    This 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.

  • GitHub repo 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-23

    When 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

  • GitHub repo click

    Python composable command line interface toolkit

  • GitHub repo mycli

    A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

  • GitHub repo pgcli

    Postgres CLI with autocompletion and syntax highlighting

    Project mention: Commandline Database Clients with Autocompletion and Syntax Highlighting | news.ycombinator.com | 2021-02-18

    In 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?

  • GitHub repo howdoi

    instant coding answers via the command line

  • GitHub repo 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

    Project mention: Show HN: Ht – HTTPie Clone in Rust | news.ycombinator.com | 2021-02-05

    And use http-prompt, because it's awesome: https://github.com/httpie/http-prompt

  • GitHub repo docopt

    Pythonic command line arguments parser, that will make you smile

  • GitHub repo python-prompt-toolkit

    Library for building powerful interactive command line applications in Python

    Project mention: Building Rich Terminal Dashboards | news.ycombinator.com | 2021-02-15

    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].

    [1] https://github.com/prompt-toolkit/python-prompt-toolkit

  • GitHub repo SAWS

    A supercharged AWS command line interface (CLI).

  • GitHub repo 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-15

    Click is great and a feature-rich option. But recommend checking out Typer, which is even simpler if you're already using type annotations. [0]

    [0]: https://github.com/tiangolo/typer

  • GitHub repo 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.

  • GitHub repo percol

    adds flavor of interactive filtering to the traditional pipe concept of UNIX shell

  • GitHub repo doitlive

    Because sometimes you need to do it live

  • GitHub 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

    Project mention: best CLI (command line interface) tools or modules? | reddit.com/r/Python | 2021-01-12

    Just bumped to asciimatics yesterday. You can do some cool CLI stuff with it: https://github.com/peterbrittain/asciimatics

  • GitHub repo 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-25

    Looks 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?

  • GitHub repo plumbum

    Plumbum: Shell Combinators

  • GitHub repo kube-shell

    Kubernetes shell: An integrated shell for working with the Kubernetes

    Project mention: Drilling down kubernetes cheat sheet | dev.to | 2021-01-20

    ⏬ Download kube-shell click here

  • GitHub repo bashplotlib

    plotting in the terminal

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-02-23.

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