Python Command-line Tools

Open-source Python projects categorized as Command-line Tools

Top 23 Python Command-line Tool Projects

  • thefuck

    Magnificent app which corrects your previous console command.

    Latest mention: We shall call this: Canadian Linux | reddit.com/r/linuxmemes | 2021-01-25
  • 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

    Latest mention: What the hell happened to Postman? | reddit.com/r/webdev | 2020-12-27

    httpie looks great too!

  • python-fire

    Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.

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

  • cookiecutter

    A command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, VueJS projects.

    Latest 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

  • Gooey

    Turn (almost) any Python command line program into a full GUI application with one line

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

  • aws-cli

    Universal Command Line Interface for Amazon Web Services

    Latest mention: AWS Elastic Beanstalk + Go | dev.to | 2021-01-05

    Vamos lá para um pequeno tutorial ensinando o passo-a-passo de como subir uma aplicação Go no serviço Elastic Beanstalk da AWS. Vou utilizar o AWS CLI porque acho legal para a pessoa que está iniciando saber exatamente todas as coisas que acontecem. Até porque se você em algum momento quiser utilizar Terraform, já tem uma boa idéia do que você vai precisar utilizar da AWS.

  • 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

  • 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

  • docopt

    Pythonic command line arguments parser, that will make you smile

  • python-prompt-toolkit

    Library for building powerful interactive command line applications in Python

  • saws

    A supercharged AWS command line interface (CLI).

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

  • typer

    Typer, build great CLIs. Easy to code. Based on Python type hints.

    Latest 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

  • 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

    Latest 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

  • colorama

    Simple cross-platform colored terminal text in Python

  • plumbum

    Plumbum: Shell Combinators

  • kube-shell

    Kubernetes shell: An integrated shell for working with the Kubernetes

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

    ⏬ Download kube-shell click here

  • 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-01-25.

Index

What are some of the best open-source Command-line Tool projects in Python? This list will help you:

Project Stars
1 thefuck 58,495
2 httpie 49,485
3 python-fire 18,530
4 cookiecutter 13,658
5 Gooey 10,852
6 aws-cli 10,574
7 click 10,284
8 mycli 9,318
9 pgcli 9,257
10 howdoi 8,662
11 http-prompt 8,026
12 docopt 7,269
13 python-prompt-toolkit 6,781
14 saws 4,690
15 PathPicker 4,521
16 typer 4,221
17 percol 2,987
18 doitlive 2,893
19 asciimatics 2,539
20 colorama 2,333
21 plumbum 2,121
22 kube-shell 1,804
23 bashplotlib 1,501