[Web-SIG] Python REPL in your browser

Robert Brewer fumanchu at amor.org
Sun Mar 19 09:49:34 CET 2006


Okay, I think this is "done enough" to show around and get some feedback (and contributions ;) on. I hacked up a REPL-over-HTTP tool yesterday and today. Current code and doc is at http://projects.amor.org/misc/wiki/HTTPREPL.

You can deploy it "standalone", maybe to give people a taste of Python. You can also use it to try various interpreter hacks (for example, I mistype "import" as "improt" often enough that I could trap that in HTTPREPL.push). The "cool factor" to me, though, is that once you have an adapter for your web framework, you can embed it in a web application and inspect what's going on in your web app or framework at runtime (in ways that took ugly printlining before).

Currently, it's only got a CherryPy adapter (and <title> ;). I'd be glad to include adapters for more frameworks. The code is in the public domain, so enjoy it however you like!


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/web-sig/attachments/20060319/4cfddd01/attachment.html 


More information about the Web-SIG mailing list