pyxargs
autobots
pyxargs | autobots | |
---|---|---|
4 | 5 | |
4 | 70 | |
- | - | |
8.6 | 7.5 | |
about 2 months ago | about 21 hours ago | |
Python | Shell | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
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.
pyxargs
-
Modern Linux Tools vs. Unix Classics: Which Would I Choose?
> 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
-
Alternative Shells
I personally use fish, but mostly for the out of the box auto completions and highlighting, I don't use it for actual scripting, nor have it set as the login shell due to the 2nd reason you mentioned.
I mostly use python as well, and for some short commands I made pyxargs [1] which lets you run python code on stdin, or a walk of your current directory.
[1] https://github.com/elesiuta/pyxargs
-
Ask HN: Share a shell script you like
pyxargs --py "print('{}') if os.path.ismount('{}') else ''" | pyxargs fusermount -u {}
My primary use case was using this with ffmpeg due to the encoding problem with xargs [2].
It can also run commands in parallel using a terminal multiplexer so outputs don't get mixed up or if they require user input.
[1] https://github.com/elesiuta/pyxargs
- Show HN: Clamshell- an experimental Python based shell
autobots
-
Ask HN: What are your favorite iOS/macOS automations?
sort of an automation, but I install all my favorite apps with brew and then use brew again (brew upgrade && brew upgrade --cask -g) to update everything
Bonus: I went the extra mile and wrote a script that bootstraps my entire setup: https://github.com/fastily/autobots/blob/master/macOS/setup/...
-
Ask HN: Share a shell script you like
I have quite a few, my personal collection of shell scripts: https://github.com/fastily/autobots
I also curate a shell command cheatsheet: https://github.com/fastily/cheatsheet
-
Ask HN: 我可以看看你的剧本吗? (Ask HN: Can I see your scripts?)
I'll go first: https://github.com/fastily/autobots
- Ask HN: Can I see your scripts?
What are some alternatives?
fuz - Fuzzy search text / notes in the terminal, for any collection of text files
ack3 - ack is a grep-like search tool optimized for source code.
spellbook - 🪄 Shell and Powershell scripts registry
IKEv2-setup - Set up Ubuntu Server 20.04 (or 18.04) as an IKEv2 VPN server
pyp - Easily run Python at the shell! Magical, but never mysterious.
hacker-scripts - Based on a true story
dotfiles
gron - Make JSON greppable!
bitbar - Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
bf.jq - Brainfuck interpreter written in jq -- This is the proof that jq is turing-complete!
argos - Create GNOME Shell extensions in seconds