Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python javascript generator

Project Description

Orun (Object RUNtime) is a small/lightweight library that provides a fast to build Python RIA, the client communicates with the server through ajax. Typical usage often looks like this:

#!/usr/bin/env python
# Cherrypy + ExtJS example

    from orun.extjs import *
    from orun.extjs import cp

    def ok_click(id, *args, **kwargs):
        cli << Ext.getCmp(id).setText('Clicked')
        cli << js.client.alert('Server side message')

    def button_click(id, *args, **kwargs):
        alert('Server side callback message');
        """ % id)

    class MyApplication(cp.ExtApplication):
        def main(self, *args, **kwargs):
            wnd = Ext.create('widget.window', {'title': 'My Window', 'width': 300, 'height': 250,
                'items': [{'xtype': 'button', 'text': 'Click Here', 'handler': button_click}],
                'buttons': [
                    {'text': 'OK', 'handler': ok_click},
                    {'text': 'Close', 'handler': js.function('this.up("window").close();')}]})

    app = MyApplication('Orun (ExtJS Application)')

The example above, runs cherrypy application on 8080 http port, and exposes extjs method.


Release History

This version
History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers