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. Learn more →
Top 23 Python Command-line Projects
-
There are tons of these. I use this one: https://cheat.sh/
-
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!
-
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.
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:
-
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 is solid.
-
-
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
-
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
-
-
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 -
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
-
Project mention: Is there a tool for synchronizing nvim configuration? | reddit.com/r/neovim | 2022-12-02
I use dotdrop
-
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-24Talking about resources, their docs are pretty good and contains some examples too. Documentation: https://ptg.bczsalba.com/pytermgui.html
-
-
gita
-
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...
-
-
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
Python Command-line related posts
- Human redable multiline string into Json.
- Multiple Cheatsheets For Linux Developers And Quick Access Short Codes To Them!
- diffdate: a really simple tool to get the number of days between two dates
- I just released ckit - A CLI utility to manage and run frequently used commands.
- What video(s) really demonstrates how effective and helpful vim can be?
- Name a program that doesn't get enough love!
- Python
-
A note from our sponsor - Sonar
www.sonarsource.com | 2 Feb 2023
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 |