{ "info": { "author": "Txema Vicente", "author_email": "txema@nabla.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "About 'pyojo' app development\n----------------------------- \n\nThis is yet another framework to help develop web applicattions \nwith python. The difference is that it is oriented to create \napplications with The Dojo Toolkit, trying to facilitate a set\nof wrappers to generate the javascript sent to the client and \nproviding help to work with the AMD loader. \n\nPyojo provides decorators to set up the route map and assign\nsome functions or classes to certain URLs, but it also can be \nused creating python modules in a folder structure, where the\nname of the module defines the content type, and the returned\nvalue of a function named GET, POST, PUT or DELETE is the\nresponse.\n\nThe minimal \"Hello World\":\n\n import pyojo\n from pyojo import server\n\n @pyojo.route(\"/\")\n def Home():\n return \"Hello World!\"\n\n server.main()\n\n\nA basic example with javascript:\n\n import pyojo\n\n #Redirect to index.html\n @pyojo.route(\"/\")\n def Home(request):\n return request.static(\"index.html\")\n\nAnd then a couple of modules at ./srv (the default folder) will\nhandle this request:\n\nsrv/index_html.py:\n\n def GET(request):\n\t return '''\n