plumbum
click
Our great sponsors
plumbum | click | |
---|---|---|
5 | 32 | |
2,744 | 14,925 | |
- | 1.2% | |
7.2 | 8.0 | |
about 2 months ago | 1 day ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
plumbum
-
Diagram as Code
if you liked that, you'll love Plumbum[1] :)
-
Top python libraries/ frameworks that you suggest every one
plumbum
-
Declarative command line parser library [Heated Arguments]
I wonder if you included plumbum in your comparison. For some reason, my long time favorite module for this (and more) always gets overlooked.
-
NOT-fuzzy line pickers
You'll still have to juggle the input, but when using Python, plumbum offers a solid function for this: choose
-
Pyshell, A Linux Subprocess Module for Python
It's kinda a nice thing. And the few people that need something like this are already using https://xon.sh/ or https://plumbum.readthedocs.io/ or https://ipython.org/ . You can have a look at these projects though. See what works and doesn't to guide the goals of your own project.
click
-
click-web: Serve click scripts over the web (Python)
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.
- Anyone want to start a project with me.
-
How does "python3 *file* -*letter* work?
there is also click, it is more straight forward and also nice to keep the relevant code where the code is. https://github.com/pallets/click/
-
I am sick of writing argparse boilerplate code, so I made "duckargs" to do it for me
Hmm… did you try such approaches, as [click](https://github.com/pallets/click) or[tap](https://github.com/swansonk14/typed-argument-parser)?
-
lord-of-the-clips (lotc): CLI app to download, trim/clip, and merge videos. Supports lots of sites. Downloads/trims at multiple points. Merges multiple clips.
This app leverages these powerful libraries: - yt-dlp: video downloader - moviepy: video trimmer/merger - click: CLI app creator - rich / rich-click: CLI app styler
-
Shells Are Two Things
I've used click [1] a lot to build Python tooling scripts the past few years. Click usage is "sort of" similar to the author's proposed solution. There's also a small section here [2] that describes some of the issues covered in the article (in context of argparse).
The proposed solution of an API with a thinly wrapped auto-generated CLI is not terrible. I have heard it is common within Google, for example.
In the Python world, there are various solutions starting from https://github.com/ialbert/plac or https://argh.readthedocs.io/en/latest/ and moving on to https://github.com/pallets/click or https://github.com/Lucretiel/autocommand and probably N others.
Personally, I prefer Nim to Python which has https://github.com/c-blake/cligen. As mentioned in https://github.com/c-blake/cligen/blob/master/MOTIVATION.md, but not in the article, the overhead of dispatch to a program in shell REPLs can also be thousands to millions of times higher than an API call.
-
Whats the easiest way to configure argument parsing in bash
Personally, I don't. By the time a program needs command line arguments, I've usually moved to a more full-featured language, like Python. (FWIW, I like Click for argument parsing in Python.)
-
What’s the most convenient way for a non-programmer to run a Python code?
You could maybe make it a click Application, and use setuptools.
-
How to get started with Github contributions to python projects
It really depends what you're into. I love click, and poetry. But I'm not strong enough to contribute at the level those two require. I just post in the issues when I know an answer or have the information behind something people may be confused on. I've reported a bug or two to Poetry, Good luck.
What are some alternatives?
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
python-prompt-toolkit - Library for building powerful interactive command line applications in Python
cement - Application Framework for Python
cliff - Command Line Interface Formulation Framework. Mirror of code maintained at opendev.org.
docopt - Pythonic command line arguments parser, that will make you smile
clint - Python Command-line Application Tools
Argh - An argparse wrapper that doesn't make you say "argh" each time you deal with it.
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
colorama - Simple cross-platform colored terminal text in Python
asynccli - A CLI framework based on asyncio