Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install thruflo.webapp

How to install thruflo.webapp

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install thruflo.webapp
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Windows (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Mac OS X (10.5+)
0.1.3 Available View build log
0.1.2 Available View build log
Linux (32-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Linux (64-bit)
0.1.3 Available View build log
0.1.2 Available View build log
Web
 
Author
License
Public Domain (http://creativecommons.org/publicdo
Lastest release
version 0.1.3 on Jan 5th, 2011

thruflo.webapp is a WSGI compatible web application framework. It has no test coverage and is no doubt flawed. But it has the advantage of being setup just the way I want it:

  • re.compile based url mapping
  • class instances handling requests with methods that correspond to the HTTP Request's method, e.g.: def post(self) handles a POST request
  • a webob.Request as self.request
  • return foo as the method of responding, where foo can be a string, a webob.Response, or a list or dict to be returned as JSON
  • mako templates with builtin methods including static_url, xsrf_form_html and escape, as well as references to handler and request

Or to put it another way:

System Message: WARNING/2 (<string>, line 11)

Literal block expected; none found.

from thruflo.webapp import web

class Hello(web.RequestHandler): def get(self): return 'hello world'

mapping = [('/.*', Hello)] application = web.WSGIApplication(mapping)

See thruflo.webapp.demo for a slightly fleshed out example usage.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.