pypipe is a command-line tool for writing data pipelines in Python. When working with data processing in the terminal, I often find myself wanting to pass the output of commands to Python for further processing. In such cases, one can either write one-liners or create regular Python scripts and connect them through pipes. However, using pypipe makes this process more convenient and efficient.
[+] [-] robertlagrant|2 years ago|reply
[+] [-] js2|2 years ago|reply
[+] [-] polyrand|2 years ago|reply
[+] [-] BiteCode_dev|2 years ago|reply
[+] [-] linsomniac|2 years ago|reply
I like to set up at least some tests on my scripts so that I can reduce the number of times I push something out that is obviously broken. pre-commit can also help with preventing shipping things with syntax errors if you enable the "ast" check, which does a simple syntax check on the code.
[+] [-] bugen|2 years ago|reply
[+] [-] kunley|2 years ago|reply
My tool of choice for such things is awk, still, it's good to have more alternatives
[+] [-] smithza|2 years ago|reply
[+] [-] dbragdon|2 years ago|reply
https://github.com/dbragdon1/s3head
and I'm gonna have a good time piping the output from s3head into pypipe.
[+] [-] leandot|2 years ago|reply
[+] [-] ekiauhce|2 years ago|reply
It gives me so much Perl one-liners vibe, when `perl` command combined with `-p` and `-e` flags allows you to write super concise programs for bash pipelines.
Some examples https://learnbyexample.github.io/learn_perl_oneliners/one-li...
[+] [-] paiute|2 years ago|reply
[+] [-] Difwif|2 years ago|reply
Also since you really want to think of this as an extension of coreutils it would be great to offer this as a brew/apt package even if it's this simple. I just want to add it to my system package list and be able to depend on the command.
[+] [-] zak905|2 years ago|reply
[+] [-] shellmachine|2 years ago|reply
[+] [-] marcyb5st|2 years ago|reply
[+] [-] fwungy|2 years ago|reply
[+] [-] AndyKluger|2 years ago|reply
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
[+] [-] izoow|2 years ago|reply
[+] [-] mrbonner|2 years ago|reply
[+] [-] syrusakbary|2 years ago|reply
I've created a package in Wasmer [1] to showcase this tool (also, it will do the processing fully sandboxed thanks to Wasm!)... hope you all like it! (here's the PR [2])
And then, run it normally: [1] https://wasmer.io/[2] https://github.com/bugen/pypipe/pull/2
[+] [-] theamk|2 years ago|reply
Compare this to OP's instructions: (1) check out the repo (2) execute the file directly.
Not sure why would anyone want wasmer for simple command like tools like those.
[+] [-] enoch2090|2 years ago|reply
[+] [-] hk__2|2 years ago|reply
[+] [-] imglorp|2 years ago|reply
[+] [-] williamcotton|2 years ago|reply
I've been making a lot of tools in this similar vein. I've been keeping them in my dotfiles.
I've got plt [0], a simple matplotlib templating language built with Python Lex Yacc for making quick plots from CSVs , eg,
There's a plugin format so you can make extensions like bleep [1]: To create a plugin xyz, just call it "xyz_template.py" and put it in ~/dotfiles/plt. Outputs to Python code are optional but useful for minor adjustments.(Does plt look familiar? Can you tell I just read the latest version of The Awk Programming language?)
Or I was reading The Unix Programming Environment (1982) and being inspired by the pick command, wired up electron to allow for STDIN/OUT/ARGV in the browser context, for what I'm calling elec [2]:
Again, to create a plugin xyz, and in this case all elec commands are plugins, add "xyz.html" to ~/dotfiles/elec, as seen with the pick [3] plugin.ANYWAYS, where I'm going with this instead of,
How about? Convention over configuration!Again, this tool is great, it's already in my dotfiles and I've already used it at work this morning, so thank you!
[0] https://github.com/williamcotton/dotfiles/blob/master/bin/pl...
[1] https://github.com/williamcotton/dotfiles/blob/master/plt/bl...
[2] https://github.com/williamcotton/dotfiles/blob/master/bin/el...
[3] https://github.com/williamcotton/dotfiles/blob/master/elec/p...
[+] [-] bugen|2 years ago|reply
[+] [-] ddgflorida|2 years ago|reply