@@ -0,0 +1,396 @@
+import sys%0Aimport code%0A%0Afrom diesel import Application, Pipe, until%0A%0Adef readcb():%0A    print 'Diesel Console'%0A    while 1:%0A        sys.stdout.write('%3E%3E%3E ')%0A        sys.stdout.flush()%0A        input = yield until(%22%5Cn%22)%0A        ret = code.compile_command(input)%0A        out = eval(ret)%0A        if out:%0A            print 'Out: %25r' %25 out%0A%0Aa = Application()%0Aa.add_loop(Pipe(sys.stdin, readcb))%0Aa.run()%0A

Add example of using stdin pipe and creating a very simple repl