pyp
Command-line-text-processing
pyp | Command-line-text-processing | |
---|---|---|
5 | 4 | |
1,366 | 10,032 | |
- | - | |
6.3 | 0.0 | |
2 months ago | over 1 year ago | |
Python | Shell | |
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.
pyp
-
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
-
Shshsh is a bridge connects Python and shell
I have bookmarked/tried so many Python/Shell mashups over the years.
IMHO the following is about the only one that's tasteful and not going off the deep end: https://github.com/hauntsaninja/pyp
-
Easily handle CLI operation via Python instead of regular Bash programs
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...
-
A Tour of the Oil Language
Thank you for the extensive and thoughtful comment! This does help clarify your approach quite considerably. I wonder, since you are hoping to attract collaborators, whether there is some kind of formal spec for the language somewhere? For example, you mentioned parallel efforts: suppose I wanted to write a port to pure C; is there any way, short of reading every one of your posts and trying to contain the whole language in my head at once, for me to know exactly what I need to implement?
Something I've been trying to figure out: what is the exact relationship at present between OSH and Oil? When you say "OSH" do you mean the language, or the shell itself "oil shell"? If Oil is not something I can download, why exactly does that `const v = max(1, 2)` statement work in osh? It's clearly not just a Bash implementation, it's got other features. Is that a subset of Oil's features? Which subset?
Since you're also interested in other shells, you might have a look at pyp [1]. It captures a lot of the way I personally would like to use some future shell. If the features of pyp were integrated into the shell itself, you wouldn't need an external command, you could just (for example) pipe the output of one program into a python-like statement that mangles the incoming strings in some way, and pipe that out to some xargs-like program to use in a subshell. (The fact that you apparently can't use the pipe in what Xonsh calls "Python mode" is for me the central limiting feature of that shell.)
[1] https://github.com/hauntsaninja/pyp
-
9 Command-Line Tools to Go to Infinity & Beyond
9. Pyp
Command-line-text-processing
-
Shell Script Best Practices, from a decade of scripting things
Submitted yesterday:
Learn to use Awk with hundreds of examples
https://github.com/learnbyexample/Command-line-text-processi...
https://news.ycombinator.com/item?id=33349930
- Learn to use Awk with hundreds of examples
-
Easily handle CLI operation via Python instead of regular Bash programs
Yep, ruby is a natural, pipeline friendly, command line companion out of the box.
https://github.com/learnbyexample/Command-line-text-processi...
https://learnbyexample.github.io/learn_ruby_oneliners/
-
My simple GitHub project went Viral
I had a similar experience with one of my GitHub repos [0] that is currently 9k+ stars. I added donation link when it was about 5k stars (after it went viral courtesy HN). But this was before GitHub sponsors. I removed donation links after I got only a single donation in about a year.
I had much better results when I started converting my tutorials into ebooks and sold them. Obviously having a paid product is different, but I'm referring to the paid sales I got whenever I put up 'pay what you want' offer.
[0] https://github.com/learnbyexample/Command-line-text-processi...
What are some alternatives?
InquirerPy - :snake: Python port of Inquirer.js (A collection of common interactive command-line user interfaces)
iglunix - Linux (and other kernels) distro with no GNU components
DALLE-pytorch - Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch
libwacom-surface - Patches to support Microsoft Surface Devices with `libwacom`.
Pawky - The Python version of awk
learn_gnused - Example based guide to mastering GNU sed
shyaml - YAML for command line
teip - Masking tape to help commands "do one thing well"
deep-daze - Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). Technique was originally created by https://twitter.com/advadnoun
parted-auto-resize - Automatically or non-interactive resize a partition to its maximum, e.g. for LVM pv resizing when using a partition as PV
theme.sh - A script which lets you set your $terminal theme.
AltServer-Linux-ShellScript - Make easier to use AltServer-Linux