Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Web framework to create Dojo apps.

Project description

About 'pyojo' app development

This is yet another framework to help develop web applicattions
with python. The difference is that it is oriented to create
applications with The Dojo Toolkit, trying to facilitate a set
of wrappers to generate the javascript sent to the client and
providing help to work with the AMD loader.

Pyojo provides decorators to set up the route map and assign
some functions or classes to certain URLs, but it also can be
used creating python modules in a folder structure, where the
name of the module defines the content type, and the returned
value of a function named GET, POST, PUT or DELETE is the

The minimal "Hello World":

import pyojo
from pyojo import server

def Home():
return "Hello World!"


A basic example with javascript:

import pyojo

#Redirect to index.html
def Home(request):
return request.static("index.html")

And then a couple of modules at ./srv (the default folder) will
handle this request:


def GET(request):
return '''<html>
<body><script src='main.js'></body>


def GET(request):
return "alert('Hello World!');"

But the real power is in the pyojo.js modules, offering a set
of code generation utilities for your Dojo application.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyojo, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyojo-0.0.2-py2.7.egg (229.7 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size (203.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page