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
No comments:
Post a Comment