Skip to main content

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.

Metadata

Release files for thruflo.webapp 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thruflo.webapp 0.1.3
File Size Uploaded
thruflo.webapp-0.1.3.tar.gz 11.5 kB Details

Release files / thruflo.webapp-0.1.3.tar.gz

Download URL thruflo.webapp-0.1.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4428afe8e9ea032f8ddf96edc995cfd11dcb1751bd96adb5cda441f083a6f35
BLAKE2b-256 checksum
How to use checksums
f4e23ae12094278a31489da331f633f8e8f4afc6c81bc2e5a318be5b51cac41e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page