Python Command-line

Open-source Python projects categorized as Command-line

Top 23 Python Command-line Projects

  • cheat.sh

    the only cheat sheet you need

    Project mention: Cheat.sh – Community Driven Documentation | news.ycombinator.com | 2024-01-07
  • q

    q - Run SQL directly on delimited files and multi-file sqlite databases (by harelba)

    Project mention: I wrote this iCalendar (.ics) command-line utility to turn common calendar exports into more broadly compatible CSV files. | /r/commandline | 2023-03-24

    CSV utilities (still haven't pick a favorite one...): https://github.com/harelba/q https://github.com/BurntSushi/xsv https://github.com/wireservice/csvkit https://github.com/johnkerl/miller

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

  • google-images-download

    Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!

  • xonsh

    :shell: Python-powered, cross-platform, Unix-gazing shell.

    Project mention: FLaNK Stack Weekly 19 Feb 2024 | dev.to | 2024-02-19
  • jc

    CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

    Project mention: Xonsh: Python-powered, cross-platform, Unix-gazing shell | news.ycombinator.com | 2024-02-14

    https://github.com/kellyjonbrazil/jc - "CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts."

  • hug

    Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.

  • jrnl

    Collect your thoughts and notes without leaving the command line.

    Project mention: The power of keeping a coding journal (2014) | news.ycombinator.com | 2023-06-12

    Is this the correct link ?

    https://github.com/jrnl-org/jrnl

    Nice idea. I like org-mode for ...nearly everything.... This looks good for the command line.

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

  • buku

    :bookmark: Personal mini-web in text

    Project mention: Buku: Personal Mini-Web in Text | news.ycombinator.com | 2024-01-29
  • gpustat

    📊 A simple command-line utility for querying and monitoring GPU status

    Project mention: Unable to see processes running on gpu using nvidia-smi command | /r/UbuntuMATE | 2023-06-27

    I have also tried gpustat(https://github.com/wookayin/gpustat) it still does not give me the process ids running.I get the following error

  • doitlive

    Because sometimes you need to do it live

  • gif-for-cli

  • ddgr

    :duck: DuckDuckGo from the terminal

    Project mention: Add Link to selection without using the browser | /r/ObsidianMD | 2023-06-29

    Using the shell commands plugin and ddgr, I managed to create a nice trick, which allows you to add the link to selected text without having to google it (hard to describe, but the gif should give you the idea). Here is how it works: - install the shell commands plugin https://obsidian.md/plugins?id=obsidian-shellcommands - install ddgr https://github.com/jarun/ddgr - add the following code as shell command: bash query="{{selection}}" link=$(ddgr --num=1 --json "$query" | grep "url" | cut -d'"' -f4) mdlink="[$query]($link)" echo -n "$mdlink" - in the settings for that shell command, set the stdout to "current file: caret position" - you are good to go. (Maybe give it a hotkey)

  • yq

    Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents (by kislyuk)

    Project mention: Jaq – A jq clone focused on correctness, speed, and simplicity | news.ycombinator.com | 2023-11-29
  • CommandlineConfig

    A library for users to write (experiment in research) configurations in Python Dict or JSON format, read and write parameter value via dot . in code, while can read parameters from the command line to modify values. 一个供用户以Python Dict或JSON格式编写(科研中实验)配置的库,在代码中用点.读写属性,同时可以从命令行中读取参数配置并修改参数值。

  • pytermgui

    Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!

    Project mention: Using Textual to Build a ChatGPT TUI App | dev.to | 2023-07-21

    Several libraries, such as urwid or PyTermGUI, allow the development of TUI applications in Python. For enhancing the functionality and aesthetics of TUI apps, they offer some fundamental and more sophisticated utilities. But there is one package that is truly exceptional and might even be so amazing that it sparks a TUI renaissance (I really wanted to put "TUI renaissance" somewhere in this article).

  • PyInquirer

    A Python module for common interactive command line user interfaces

  • lookatme

    An interactive, terminal-based markdown presenter

    Project mention: Which software do you use to create presentations using Vim that is superior to existing ones? | /r/neovim | 2023-12-11

    However, I also use lookatme for terminal presentations written in markdown.

  • dotdrop

    Save your dotfiles once, deploy them everywhere

    Project mention: GNOME Extensions: How do people normally sync their settings to other laptops/desktops? | /r/gnome | 2023-05-07
  • gita

    Manage many git repos with sanity 从容管理多个git库

    Project mention: Gita: Manage multiple Git repositories with sanity | news.ycombinator.com | 2023-07-18
  • itermplot

    An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.

    Project mention: UnicodePlots | news.ycombinator.com | 2023-04-09

    If you happen to use `iTerm2`, then https://github.com/daleroberts/itermplot works very well. I've used it before and can recommend it pretty highly.

  • pyp

    Easily run Python at the shell! Magical, but never mysterious.

    Project mention: Modern Linux Tools vs. Unix Classics: Which Would I Choose? | news.ycombinator.com | 2023-09-23

    > I too can never remember jq syntax when I need to. I usually just end up writing a Python script

    Same here! That's why for small things I made pyxargs [1] to use python in the shell. In another thread I also just learned of pyp [2] which I haven't tried yet but looks like it'd be even better for this use case.

    [1] https://github.com/elesiuta/pyxargs

    [2] https://github.com/hauntsaninja/pyp

  • elodie

    An EXIF-based photo assistant, organizer and workflow automation tool.

    Project mention: Help! Advice to organise one giant folder of photos in to subdirectories by date... | /r/DataHoarder | 2023-03-06

    elodie can do this and is very configurable.

  • cleo

    Cleo allows you to create beautiful and testable command-line interfaces.

  • WorkOS

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

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-02-19.

Python Command-line related posts

Index

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

Project Stars
1 cheat.sh 37,050
2 q 10,080
3 google-images-download 8,467
4 xonsh 7,775
5 jc 7,399
6 hug 6,804
7 jrnl 6,184
8 buku 6,031
9 gpustat 3,758
10 doitlive 3,377
11 gif-for-cli 2,903
12 ddgr 2,811
13 yq 2,400
14 CommandlineConfig 2,043
15 pytermgui 1,975
16 PyInquirer 1,862
17 lookatme 1,850
18 dotdrop 1,722
19 gita 1,593
20 itermplot 1,475
21 pyp 1,351
22 elodie 1,196
23 cleo 1,192
The modern API for authentication & user identity.
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com