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: Ask HN: Terminal Cheatsheets | news.ycombinator.com | 2023-01-27

    There are tons of these. I use this one: https://cheat.sh/

  • q

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

    Project mention: Show HN: ClickHouse-local – a small tool for serverless data analytics | news.ycombinator.com | 2023-01-05

    I think they're talking about https://github.com/harelba/q, which is not very fast.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • 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: Is it possible for a python program to set up a ssh server? | reddit.com/r/learnpython | 2023-02-01

    It's definitely possible, but it may be very hard. I have no idea how ssh hooks into a shell. It maybe that the interface is not replicable in python without writing your own hook library in c. You might look at creating a remote driver for a python shell, like this one: https://xon.sh/

  • hug

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

  • 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: Human redable multiline string into Json. | reddit.com/r/json | 2023-01-26

    As others have mentioned you can use YAML to create the values and then convert the YAML to JSON. Here's how you can do that at the command line with jc:

  • jrnl

    Collect your thoughts and notes without leaving the command line.

    Project mention: How do you create time-stamped text files for personal diaries or work logs? | reddit.com/r/commandline | 2023-01-16
  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • buku

    :bookmark: Personal mini-web in text

    Project mention: Searching for a tag based bookmark manager | reddit.com/r/software | 2022-12-03

    Buku is solid.

  • doitlive

    Because sometimes you need to do it live

  • gpustat

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

    Project mention: CUDA out of memory Error | reddit.com/r/StableDiffusion | 2022-10-26

    Do you have steam or other gaming platforms installed? There may be another service using ram. You could also check the ram with a cli tool https://github.com/wookayin/gpustat

  • gif-for-cli

  • ddgr

    :duck: DuckDuckGo from the terminal

    Project mention: What video(s) really demonstrates how effective and helpful vim can be? | reddit.com/r/vim | 2023-01-03

    Leveraging filter commands (i.e. :!) to easily/quickly manipulate lines or entire buffers/files. For example, :!date will run the external date and show you results, but :.!date (which is done by typing !! then date will run the external date command and put the result on the current line. But, also, if you have the word date on a line, then you can run :.!bash (which is done by typing !! then bash), which will execute the command date and replace the current line with the result. There are infinite uses for this, like :!sort (for sorting text), :!column -t (for aligning/tabulating text), :!awk for text manipulation, :!ddgr duckduckgo cli, ...etc

  • yq

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

    Project mention: The YAML Document from Hell | news.ycombinator.com | 2023-01-12
  • 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格式编写(科研中实验)配置的库,在代码中用点.读写属性,同时可以从命令行中读取参数配置并修改参数值。

    Project mention: Commandline-config: A library for users to write (experiment in research) configurations in Python Dict format, while can read parameters from the command line. 一个供用户以Python Dict或JSON格式编写(科研中实验)配置的库,同时可以从命令行中读取参数。 | reddit.com/r/Python | 2022-09-20
  • PyInquirer

    A Python module for common interactive command line user interfaces

    Project mention: To that guy who told me about argparse | reddit.com/r/learnpython | 2022-02-03

    I second click, combine with PyInquirer as well. Unfortunately PyInquirer is EOL, but they are trying to find a successor https://github.com/CITGuru/PyInquirer/issues/159

  • dotdrop

    Save your dotfiles once, deploy them everywhere

    Project mention: Is there a tool for synchronizing nvim configuration? | reddit.com/r/neovim | 2022-12-02

    I use dotdrop

  • lookatme

    An interactive, terminal-based markdown presenter

    Project mention: Marp: Markdown Presentation Ecosystem | news.ycombinator.com | 2023-01-24

    https://github.com/d0c-s4vage/lookatme if you're a command line guy like me, this is my favorite slides presentation system inside the console.

  • pytermgui

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

    Project mention: Any Good Recommendations for a Tutorial on PyTermGUI? | reddit.com/r/commandline | 2022-09-24

    Talking about resources, their docs are pretty good and contains some examples too. Documentation: https://ptg.bczsalba.com/pytermgui.html

  • itermplot

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

  • gita

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

    Project mention: mani, a CLI Tool to Manage Multiple Repositories | dev.to | 2022-05-02

    gita

  • pyp

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

    Project mention: Easily handle CLI operation via Python instead of regular Bash programs | news.ycombinator.com | 2022-02-11

    I wrote a similar tool a while back that lets you create your own "magic" variables. I use `f` all the time! https://github.com/hauntsaninja/pyp#pyp-lets-you-configure-y...

  • shell-functools

    Functional programming tools for the shell

  • elodie

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

    Project mention: Year old indie mobile app: what worked for the long haul | news.ycombinator.com | 2023-01-07

    I have an 8 year old app that reminds me a lot of this article.

    Something that's worked really well for me was that I created a plugin feature and most new features are actually plugins. This lets me add capabilities without touching or adding logic to the core code.

    Last night I added SQLite support as a plugin. 2 code files and one is unit tests. https://github.com/jmathai/elodie/pull/443/files

    I don't know if this is the best approach but it's worked better than others in my 20+ years of writing software.

  • 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 2023-02-01.

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 34,541
2 q 9,770
3 google-images-download 8,199
4 xonsh 6,757
5 hug 6,696
6 jc 6,000
7 jrnl 5,741
8 buku 5,499
9 doitlive 3,242
10 gpustat 3,213
11 gif-for-cli 2,853
12 ddgr 2,565
13 yq 2,075
14 CommandlineConfig 1,998
15 PyInquirer 1,687
16 dotdrop 1,509
17 lookatme 1,491
18 pytermgui 1,466
19 itermplot 1,408
20 gita 1,255
21 pyp 1,254
22 shell-functools 1,088
23 elodie 1,077
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com