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: Control Linux based distros using hand gestures using OpenCV, GTK, Mediapipe | news.ycombinator.com | 2024-04-14

    Are you by chance interested in a command named after the four-letter word, which automatically fixes and reruns the last command: https://github.com/nvbn/thefuck

  • 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: Personas - an Ai Assistant | dev.to | 2024-04-14

    tested the end points using httpie and sometime curl

  • 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

  • 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

    This project is no longer maintained. Please see https://github.com/jazzband/docopt-ng

    Project mention: Docopt: Command-line interface description language | news.ycombinator.com | 2024-03-28
  • 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-04-14.

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,633
2 httpie 31,680
3 Python Fire 26,237
4 cookiecutter 21,509
5 Gooey 20,335
6 click 14,969
7 aws-cli 14,848
8 typer 14,228
9 pgcli 11,678
10 mycli 11,246
11 howdoi 10,418
12 python-prompt-toolkit 8,942
13 HTTP Prompt 8,866
14 docopt 7,893
15 SAWS 5,188
16 PathPicker 5,065
17 asciimatics 3,522
18 colorama 3,414
19 doitlive 3,397
20 percol 3,280
21 plumbum 2,748
22 iredis 2,479
23 kube-shell 2,346
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com