Thanks to visit codestin.com
Credit goes to jugad2.blogspot.com

Showing posts with label pyxshell. Show all posts
Showing posts with label pyxshell. Show all posts

Wednesday, January 23, 2013

What the shell? pyxshell :)

nojhan/pyxshell · GitHub

Excerpt:

[
Pyxshell aims to bring text stream manipulation commands with pipelines, like in Unix shells, but in pure Python.
A short example:
>>> from pyxshell.common import grep,glue
>>> pl = []
>>> ['python', 'ruby', 'jython'] | grep(r'yt') > pl
>>> pl | glue("\n") > sys.stdout
python
jython
]

Looks interesting.

As I said before, there are many ways to skin a pipe, er, cat, in Python:

http://jugad2.blogspot.com/2011/09/some-ways-of-doing-unix-style-pipes-in.html

And:

http://jugad2.blogspot.com/2012/10/swapping-pipe-components-at-runtime.html

- Vasudev Ram
www.dancingbison.com