Yet another WSGI web app framework
Project description
DEVELOPMENT ON THIS PACKAGES HAS MOVED TO weblayer.
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:
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.
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
File details
Details for the file thruflo.webapp-0.1.3.tar.gz
.
File metadata
- Download URL: thruflo.webapp-0.1.3.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4428afe8e9ea032f8ddf96edc995cfd11dcb1751bd96adb5cda441f083a6f35 |
|
MD5 | a3322a084d5945c81ce2d0549b9caa72 |
|
BLAKE2b-256 | f4e23ae12094278a31489da331f633f8e8f4afc6c81bc2e5a318be5b51cac41e |