Skip to main content

Wrapper to integrate CGI scripts into django views.

Project description

Wrapper to integrate CGI scripts into django views.

https://travis-ci.org/nmandery/django_cgi_wrap.svg?branch=master

Simple function to wrap old-style CGI scripts/binaries to integrate them into the views of a django app.

This method preserves the shortcommings of the CGI deployment, but may be adequate when the performance hit caused by CGI spawning a new process for each request is negligible, a legacy CGI executable needs to be embedded in a new application or the ease of deployment is a priority.

Data returned by the CGI will be streamed to the client.

Example:

from django_cgi_wrap import cgi_wrap

def example_view(request):
    return cgi_wrap(request, "/usr/bin/mapserv")

Also see the “tests” directory for a working example as well as the doc-strings of the module itself.

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

django_cgi_wrap-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file django_cgi_wrap-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django_cgi_wrap-0.2.0.tar.gz
Algorithm Hash digest
SHA256 552e04461e63ed936c0d14ecac53a4152880e3c0e3e7c73d46d4c9b42269ff0f
MD5 8854c6948daf9eef56e2a1d0926adfc8
BLAKE2b-256 8aad1d704c8b13207b9ea0e6f58e74fbebe19b528b6310293c411389dcc2f555

See more details on using hashes here.

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