pz
pyp
pz | pyp | |
---|---|---|
11 | 5 | |
717 | 1,367 | |
0.4% | - | |
0.0 | 6.3 | |
about 2 years ago | 2 months ago | |
Python | Python | |
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.
pz
-
Show HN: Pypipe – A Python command-line tool for pipeline processing
Cool!
I was going to ask how this differs in broad strokes from pz, but when I went to get the reference link found that pz hasn't been updated in two years, so that's one big difference.
https://github.com/CZ-NIC/pz
- Python import statements make it inconvenient for inline use in shell scripts
- Program mentioned on here - can anyone remember it?
-
Show HN: Prig – like Awk, but uses Go for “scripting”
TIL about pz (kind of like this but using Python) -- that's very cool! https://github.com/CZ-NIC/pz
-
Easily handle CLI operation via Python instead of regular Bash programs
This seems very useful!
The behaviour of auto-imports https://github.com/CZ-NIC/pz#auto-import seems bit scary:
> Caveat: When accessed first time, the auto-import makes the row reprocessed. It may influence your global variables. Use verbose output to see if something has been auto-imported.
It sounds like this could cause some very subtle bugs. Maybe a strong and clear warning when a line is being reprocessed would help.
- Easily handle day to day CLI operation via Python instead of regular Bash programs.
- GitHub - CZ-NIC/pz: Easily handle day to day CLI operation via Python instead of regular Bash programs.
- Pz: CLI operation via Python instead of regular Bash programs
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
What are some alternatives?
Command-line-text-processing - :zap: From finding text to search and replace, from sorting to beautifying text and more :art:
InquirerPy - :snake: Python port of Inquirer.js (A collection of common interactive command-line user interfaces)
zsh-defer - Deferred execution of Zsh commands
DALLE-pytorch - Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch
alias-tips - An oh-my-zsh plugin to help remembering those aliases you defined once
Pawky - The Python version of awk
nio - Low Overhead Numerical/Native IO library & tools
shyaml - YAML for command line
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
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
sheldon - :bowtie: Fast, configurable, shell plugin manager