|
I like the ideas behind http://acko.net/blog/on-termkit/. I too dream of a ipython-like shell, where the input/output is similar to GET/POST with Accept headers (so the pipes know if the source/destination can manage the data). My idea is mix https://tablib.readthedocs.org/en/latest/ as data exchange, python, ipython?, https://pypi.python.org/pypi/httpie/ (as example of the kind of commands), and termkit ideas on display, interface. So, each command could do something like: class ls(cmd): def accept(self):
return 'json, xml, cvs' def output(self):
return 'json, xml, cvs' def run(self, input):
return output But the problem is that do this is hard, take time, and to be useful, require rewrite a lot of basic unix functionality (however, a compatibility can be archived, as with ipython !command) and perhaps a custom language/interpreter to make it usable. |