Re: Bash-like pipes in Python

2016-03-19 Thread Stefan Otte
I use the pipe style a lot, but one of the annoyances is that many functions in the python standardlib expect the first argument to be a callable and the second an iterable. I tend to write a lot of "p-functions" (functions which switch that order and make them compatible to `pipe`). from pelper

Re: Bash-like pipes in Python

2016-03-18 Thread Stefan Otte
I wrote this little lib "pelper" [0] which has the elixir inspired pipe [1]. I initially had an implementation that used operator overloading but found that the "|" syntax was not really necessary. I just use the function `pipe` [2] Some examples from the repo: ``pipe`` allows you to turn somethi

Python counterpart of Elixir's build tool Mix - or: why is it so cumbersome to "create packages"

2015-03-27 Thread Stefan Otte
Hey, lately I was playing with elixir [1] and I found Mix [2], elixir's "build/task tool", to be amazing. Creating new projects, compiling, installing dependencies, running and testing -- really easy! For what I'm concerned mix convinced me just for the "mix new projectname" command: * creating R