Python CLI

Open-source Python projects categorized as CLI

Top 23 Python CLI Projects

  • sherlock

    🔎 Hunt down social media accounts by username across social networks

  • Project mention: Checking all accounts associated with my email address? | /r/PrivacySecurityOSINT | 2023-11-12

    In the interest of cleaning my digital life a bit I really want to delete all of my old accounts that I no longer use. The terminal application "Sherlock" on github can search for instances of a username you input and find associated websites. Sherlock

  • cheat.sh

    the only cheat sheet you need

  • Project mention: Ask HN: What are your go to shell one-liners? | news.ycombinator.com | 2024-04-22

    curl https://cheat.sh/$1

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

    WorkOS logo
  • 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

  • tqdm

    :zap: A Fast, Extensible Progress Bar for Python and CLI

  • Project mention: Neat Parallel Output in Python | news.ycombinator.com | 2024-02-25

    yeah my code needs to use multiprocessing, which does not play nice with tqdm. thanks for the tip about positions though, that helped me search more effectively and came up with two promising comments. unmerged / require some workarounds, but might just work:

    https://github.com/tqdm/tqdm/issues/1000#issuecomment-184208...

  • 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

  • textual

    The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

  • Project mention: Harlequin: SQL IDE for Your Terminal | news.ycombinator.com | 2024-01-05
  • 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.

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

    InfluxDB logo
  • 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
  • beets

    music library manager and MusicBrainz tagger

  • Project mention: Show HN: Synced lyrics database with a free, easy-to-use API | news.ycombinator.com | 2024-02-23

    I was always frustrated that there is no solid source for synced lyrics that also offers decent API support. There is good ol' Crintsoft's MiniLyrics that is thankfully free software, was what I used a lot in my childhood, but unfortunately the API is highly obfuscated. Another popular choice is the Musixmatch API, which has a very large database of synced lyrics, but with "free" API that are reverse-engineered from their app, you will quickly run into rate-limit.

    That's why I created LRCLIB. It's aimed to provide completely free synchronized lyrics for everyone, especially for FOSS music players, with zero profit intention. It currently has nearly 3,000,000 (not deduplicated) lyrics in database. You can also contribute to the database by adding and syncing lyrics for your favorite songs using the LRCGET client.

    I'm trying my best to make LRCLIB server-side code open-source as soon as possible. But right now, full LRCLIB's database dumps have already been uploaded regularly and publicly, which are simply sqlite3 files. Feel free to download, look at or do anything you want with the database at https://lrclib.net/db-dumps.

    Many open-source projects have already begun integrating LRCLIB, including:

    - beets - music library metadata management (https://github.com/beetbox/beets)

  • q

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

  • Project mention: TwitchAdSolutions – Blocking Twitch Ads | news.ycombinator.com | 2024-04-15

    It doesn't look like Streamlink is immune to the challenges of Twitch ads: https://github.com/streamlink/streamlink/issues/4949

  • 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

  • pipx

    Install and Run Python Applications in Isolated Environments

  • Project mention: Keep your AWS CLI config fresh with Cog | dev.to | 2024-03-28

    Use pipx to install Cog and my aws-sso-config-builder tool in the same environment:

  • shell_gpt

    A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.

  • Project mention: Oh My Zsh | news.ycombinator.com | 2024-01-22

    https://github.com/TheR1D/shell_gpt?tab=readme-ov-file#shell...

  • xonsh

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

  • Project mention: This Week In Python | dev.to | 2024-03-09

    xonsh – Python-powered, cross-platform, Unix-gazing shell

  • conan

    Conan - The open-source C and C++ package manager

  • Project mention: The xz attack shell script | news.ycombinator.com | 2024-04-02

    Conan is a package manager for C/C++. See: https://conan.io/.

    The way it works is that you can provide "recipes", which are Python scripts, that automate the process of collecting source code (usually from a remote Git repository, or a remote source tarball), patching it, making its dependencies and transitive dependencies available, building for specific platform and architecture (via any number of build systems), then packaging up and serving binaries. There's a lot of complexity involved.

    Here are the two recipes I mentioned:

    libcurl: https://github.com/conan-io/conan-center-index/blob/master/r...

    OpenSSL v3: https://github.com/conan-io/conan-center-index/blob/master/r...

    Now, for the sake of this thread I want to highlight three things here:

    - Conan recipes are usually made by people unaffiliated with the libraries they're packaging;

    - The recipes are fully Turing-complete, do a lot of work, have their own bugs - therefore they should really be treated as software comonents themselves, for the purpose of OSS clearing/supply chain verification, except as far as I know, nobody does it;

    - The recipes can, and do, patch source code and build scripts. There's supporting infrastruture for this built into Conan, and of course one can also do it by brute-force search and replace. See e.g. ZLib recipe that does it both at the same time:

    https://github.com/conan-io/conan-center-index/blob/7b0ac710... -- `_patch_sources` does both direct search-and-replace in source files, and applies the patches from https://github.com/conan-io/conan-center-index/tree/master/r....

    Now, good luck keeping track of what's going on there.

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

  • visidata

    A terminal spreadsheet multitool for discovering and arranging data

  • Project mention: Fx – Terminal JSON Viewer | news.ycombinator.com | 2023-09-19

    [4] "Is it possible to "flatten" structured data (like JSON?)": https://github.com/saulpw/visidata/discussions/1605

  • ngxtop

    Real-time metrics for nginx server

  • isort

    A Python utility / library to sort imports.

  • Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    isort: This library sorts your imports alphabetically, and automatically separates them into sections and by type. It provides a cleaner and more organised way to manage project imports.

  • jrnl

    Collect your thoughts and notes without leaving the command line.

  • Project mention: Collect your thoughts and notes without leaving the commnand line | news.ycombinator.com | 2024-04-11
  • buku

    :bookmark: Personal mini-web in text

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

    macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.

  • SaaSHub

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

    SaaSHub logo
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).

Python CLI related posts

Index

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

Project Stars
1 sherlock 51,142
2 cheat.sh 37,443
3 httpie 31,760
4 tqdm 27,405
5 Python Fire 26,266
6 textual 23,447
7 click 14,997
8 typer 14,293
9 beets 12,374
10 q 10,109
11 streamlink 9,546
12 HTTP Prompt 8,872
13 pipx 8,785
14 shell_gpt 8,262
15 xonsh 7,986
16 conan 7,753
17 jc 7,558
18 visidata 7,409
19 ngxtop 6,441
20 isort 6,306
21 jrnl 6,270
22 buku 6,136
23 dev-setup 6,032

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com