Skip to main content

Utilities for google app engine

Project description


Google app engine utilities using some django's ideas.

git clone git://
cd turboengine
python Install

Create an file and can add variables settings as you want, but
this is some commons variables::
TEMPLATE_PATH = 'templates'

# setting DEBUG
DEBUG = True
SITE_TITLE = 'turboengine for GAE'

# mapping (parent url, appname)
INSTALLED_APPS = [(parent_url, appnane)] # app names shouldn't be standard python libraries and they should be importables into PYTHONPATH
TEMPLATE_TAGS_PATHS = [] # not used but it will be used in feature for loading templatetags
ERROR_PAGE_PATH = '/error/' # path where will be redirected the error
LOGIN_PATH_REDIRECT = '/' # path where redirect after login or logout
PROFILE_PATH = '/account/profile/'

To import settings do this:
from turboengine.conf import settings

If you want to implement an Website use this:
from turboengine.http import RequestHandler
from turboengine.decorators import login_required

class MyHandler(RequestHandler):
def get(self):
# you can add headers or common usages of the request
user = self.user # return authenticated user or None if is not logged in
.... code
self.render_template(template, paramaters)

def post(self):
.... code

And use one file like (
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from turboengine import urls
from turboengine.conf import settings

application = webapp.WSGIApplication(urls.generate_urls(settings.INSTALLED_APPS), debug=settings.DEBUG)

def main():

if __name__ == "__main__":

If you want to implement webservices first install ZSI and zope.interface then::
from turboengine.webservices.application import SOAPAplication
from turboengine.webservices.application import WSGIAplication

from EchoServer_server import * # this class is generated by 'python wsdl2py SimpleEcho.wsdl' see

# Implementing services

class wsEchoServer(EchoServer):
# Make WSDL available for HTTP GET
wsdl = "".join(open('SimpleEcho.wsdl').readlines())
disco = "".join(open('SimpleEcho.disco').readlines())

def soap_Echo(self, ps, **kw):
request, response = EchoServer.soap_Echo(self, ps, **kw)
return request, request

def main():
application = WSGIApplication()
application['EchoServer.asmx'] = SOAPAplication(wsEchoServer())
#application['OtherServer.asmx'] = SOAPAplication(wsOtherServer()) # could have many webservices

if __name__ == '__main__':

Please to see how to use webservices on GAE visit this:


Implement restful and templatetags

Project details

Download files

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

Source Distribution

turboengine-1.0.2.tar.gz (6.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page