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.

    Project mention: thefuck VS oh-crab - a user suggested alternative | libhunt.com/r/thefuck | 2024-01-05
  • httpie

    🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. (by httpie)

    Project mention: Bruno | news.ycombinator.com | 2024-03-09

    There is also HTTPie which I've mostly been using for its excellent `http` CLI as a modern replacement for curl.

    However I recently learned that it also has web and desktop client apps which are pretty great too!

    https://httpie.io/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Python Fire

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

    Project mention: CLI tools hidden in the Python standard library | news.ycombinator.com | 2023-06-29

    The cli tool [fire](https://github.com/google/python-fire/blob/master/docs/guide...) has a nifty feature where it can generate a cli for any file for you.

    So random and math are somewhat usable that way

        $ python -m fire random uniform 0 1

  • cookiecutter

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

    Project mention: Ask HN: How do you bootstrap your software projects? | news.ycombinator.com | 2023-12-07

    Sometimes I use this to abstract boilerplate https://github.com/cookiecutter/cookiecutter

    It can use a repo as a template.

    It supports some interactive questions to choose options but mostly it is jinja templates.

    Having libraries would be another option.

  • Gooey

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

    Project mention: Gooey: My take on a Rusty GUI framework | news.ycombinator.com | 2023-12-23

    The name conflicts with a similar python module that allows one to turn any Python console program into a GUI with one line.

    https://github.com/chriskiehl/Gooey

  • click

    Python composable command line interface toolkit

    Project mention: click-web: Serve click scripts over the web (Python) | news.ycombinator.com | 2023-12-13

    Context: "click" - "Command Line Interface Creation Kit" - easily create CLIs from Python code, via adding decorators: https://github.com/pallets/click

    "click-web" in turn turns the click CLI app into a web app with one line of code.

  • aws-cli

    Universal Command Line Interface for Amazon Web Services

    Project mention: Top 10 CLI Tools for DevOps Teams | dev.to | 2023-08-14

    The AWS CLI is a must-have tool if your team relies on Amazon Web Services. It lets you effortlessly interact with AWS services, orchestrate resource management, and automate tasks from the comfort of your terminal. Once you get used to the tool, you'll notice how convenient and quick it is to fit into your processes – especially compared to going through AWS's web-based user interface.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • typer

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

    Project mention: Copilot for your GitHub stars | dev.to | 2023-11-20
  • pgcli

    Postgres CLI with autocompletion and syntax highlighting

  • mycli

    A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

    Project mention: Does anyone prefer the CLI over the shell, or other way around? If so, why? | /r/mysql | 2023-04-23

    Also, check out MyCLI. https://github.com/dbcli/mycli "Terminal Client for MySQL with AutoCompletion and Syntax Highlighting"

  • howdoi

    instant coding answers via the command line

    Project mention: howdoi codebase | /r/learnpython | 2023-05-30

    In this case, you'd be looking at https://github.com/gleitz/howdoi/blob/master/howdoi/howdoi.py

  • python-prompt-toolkit

    Library for building powerful interactive command line applications in Python

    Project mention: Is there a library that can give python-prompt-toolkit like completion for TUI? | /r/rust | 2023-04-09

    Ref. https://github.com/prompt-toolkit/python-prompt-toolkit and https://github.com/c-bata/go-prompt ?

  • 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

    Project mention: Building a Command Line Tool with PHP and Symfony Console | dev.to | 2024-01-20

    Symfony Console closely follows the well-established docopt conventions. Docopt, based on longstanding conventions from help messages and man pages, ensures a consistent and intuitive interface for describing a program's interface. Symfony Console's adherence to docopt conventions guarantees that your command line tools maintain a standardized and predictable user experience, simplifying development and user interaction.

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

    Project mention: PathPicker: A CLI tool that lets you select files out of bash output | news.ycombinator.com | 2023-10-13
  • 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: What is your go-to UI framework? | /r/learnpython | 2023-06-27

    For small apps, I may choose a TUI (Terminal User Interface). Curses for Python is very lightweight, but quite low level and difficult to use for anything more than a very simple interface (if your app tries to draw outside of the drawing area, the app crashes, so you have to carefully manage every detail). Textual and asciimatics are both mature TUI frameworks that provide a higher level and more Pythonic way to create TUI's.

  • colorama

    Simple cross-platform colored terminal text in Python

    Project mention: [Newbie question] struggling with colour change on user input | /r/pythonhelp | 2023-05-28

    Try using https://github.com/tartley/colorama, that should straighten out most low level problems. If you still have issues, you need to adjust your color scheme in pycharm.

  • doitlive

    Because sometimes you need to do it live

  • percol

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

    Project mention: Show HN: LineSelect, shell utility to interactively select lines in a pipeline | news.ycombinator.com | 2023-07-05

    Some other options:

    1. Piping into `fzf -m` (use tab to toggle selections and built-in search to filter options).

    2. Percol https://github.com/mooz/percol (also has filtering, use ctrl-space to toggle selection).

  • plumbum

    Plumbum: Shell Combinators

  • iredis

    Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.

  • kube-shell

    Kubernetes shell: An integrated shell for working with the Kubernetes

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

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 2024-03-09.

Python Command-line Tools related posts

Index

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

Project Stars
1 thefuck 82,268
2 httpie 31,405
3 Python Fire 26,076
4 cookiecutter 21,356
5 Gooey 20,236
6 click 14,880
7 aws-cli 14,761
8 typer 13,228
9 pgcli 11,611
10 mycli 11,218
11 howdoi 10,395
12 python-prompt-toolkit 8,885
13 HTTP Prompt 8,858
14 docopt 7,893
15 SAWS 5,177
16 PathPicker 5,050
17 asciimatics 3,500
18 colorama 3,388
19 doitlive 3,387
20 percol 3,235
21 plumbum 2,736
22 iredis 2,467
23 kube-shell 2,346
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com