pyxargs
stderred
pyxargs | stderred | |
---|---|---|
4 | 1 | |
4 | 980 | |
- | - | |
8.6 | 3.4 | |
about 2 months ago | 4 months ago | |
Python | C | |
GNU General Public License v3.0 only | MIT 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.
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
stderred
-
Ask HN: Share a shell script you like
2. Installing all of my custom scripts as 'programs' (complete with a bin directory, for easy inclusion in my PATH) under /opt/my for better tracking/management, as opposed to e.g. /usr/local/bin
3. A 'checkupdates' alias which performs update-checks via multiple systems (in my case: apt, flatpak, and my totally awesome misc-updater - see here if interested: https://sr.ht/~tpapastylianou/misc-updater/)
4. libstderred (https://github.com/ku1ik/stderred)
5. The following exports (I'll let you decipher them)
export LESS="-I -R -S -j.5 -#2"
What are some alternatives?
fuz - Fuzzy search text / notes in the terminal, for any collection of text files
spellbook - 🪄 Shell and Powershell scripts registry
swift-sh - Easily script with third-party Swift dependencies.
pyp - Easily run Python at the shell! Magical, but never mysterious.
dotfiles
vim-mergetool - Better vim-based mergetool
gron - Make JSON greppable!
bf.jq - Brainfuck interpreter written in jq -- This is the proof that jq is turing-complete!
fzf - :cherry_blossom: A command-line fuzzy finder