Skip to main content

WSGI without the WSGI

Project description

Middleware for WSGI-enabling Python callables including:

  • Middleware that makes non-WSGI Python functions, callable classes, or methods into WSGI applications

  • Middleware that automatically handles generating WSGI-compliant HTTP response codes, headers, and compliant iterators

  • An HTTP response generator

  • A secondary WSGI dispatcher

Examples:

# Automatically handle HTTP response, header, and iterator generation

@wsgize()
def app(environ, start_response):
    return 'Hello World'

# Make a normal Python function into a WSGI application

@wsgiwrap()
def app(name):
    return 'Hello ' % name

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

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

Source Distributions

wsgize-0.4.zip (11.5 kB view hashes)

Uploaded Source

wsgize-0.4.tar.gz (7.5 kB view hashes)

Uploaded Source

wsgize-0.4.tar.bz2 (7.7 kB view hashes)

Uploaded Source

Built Distributions

wsgize-0.4.win32.exe (66.8 kB view hashes)

Uploaded Source

wsgize-0.4-py2.5.egg (6.7 kB view hashes)

Uploaded Source

wsgize-0.4-py2.4.egg (6.8 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