Interactive Python shell with Flex

Google did the Ajax version of the Python shell, running on Google App Engine, we present you with the Flex version (click image to view the sample):

You can browse or download the source from the Subversion repository. You can find instructions on how to run the example yourself in the documentation.

13 Responses to “Interactive Python shell with Flex”

  1. Who Care says:

    This is just a simple novelty, who cares? OMG you used _FLEX_ instead of javascript… big friggin deal.

  2. Friendly Neighbourhood White Hat says:

    Uh, oh, schoolboy error …

    >>> import sys
    >>> sys.stdout.write(open(’settings.py’).read())

    SECRET_KEY = ‘hv3c-_#z*tibii%0u@7^@be7c=-#!8$+td%$blvuzscgs4^ey%’

  3. wow does that first commentor have a stick up his rear!! Anyway you all are doing a great job!!!! Keep up the good work! Love the demo

  4. Brett Morgan says:

    Nice. I think it handles better than the ajax version, not sure why. It’ll be nice to be able to interact with a running app’s server side from within the client.

  5. @Friendly Neighbourhood White Hat: we already pointed out that you shouldn’t run this demo in a production environment, unless it’s something restrictive like Google App Engine. The secret key you mention can also be found in the source code and is no secret anymore anyway ;)

  6. Bert Heymans says:

    Nice demo! Thanks for sharing your work :o )

  7. Miguel Lopes says:

    I’ve been experimenting with PyAMF and have problems with non ascii characters.

    Will you be addressing utf-8 anytime soon?

    Not to be picky ;-) Because I think you are doing a tremendous job!
    And I’d help with the utf had I the knowledge!

    Txs,
    Miguel

  8. @ Miguel: UTF-8 is fully supported in PyAMF. We have a number of unit tests to cover this and there aren’t any open issues. What version of PyAMF are you using? If you’re using Django with PyAMF then you might hit this issue which was solved in the trunk and will be part of the next release. If you’re seeing other issues, please register on pyamf.org and create a new ticket with any sample apps that can reproduce those issues.

  9. Miguel Lopes says:

    @ Thijs Triemstra: I’m using your Hello world example server by Nick Joyce that I got at http://pyamf.org/wiki/HelloWorld

    The problem only happears when I hard code some strange characters in the return data from the Python server, for example “ê ã €”. On the other hand if I enter strange characters in Flex the round trip is sweet!

  10. [...] Django to app-engine-patch. The main reason? So I could have the sessions middleware and run the PyAMF Shell. (And, of course, it’s good to be running Django 1.0 [...]

  11. [...] started out by downloading the source for the shell app via a link on a post on the PyAMF blog. Unfortunately, the link was to the wrong version of the shell app (I’ve since informed the PyAMF [...]

  12. Basarat Ali Syed says:

    Based on this example created an automatic code generator for python -> actionscript for a stateful web service.

    Check it out:
    http://www.vimeo.com/3419002
    http://code.google.com/p/pyamfcodegen
    :)

  13. Thijs says:

    @Basarat: that’s great stuff, thanks for sharing that!

    I added a link to your screencast on http://pyamf.org/wiki/InTheNews and your google code project on http://pyamf.org/wiki/SuccessStories

    Cheers!

Leave a Reply