Skip to main content

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.

Metadata

Release files for django-cgi-wrap 0.2.0

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

Source distribution (sdist)

Source distribution for django-cgi-wrap 0.2.0
File Size Uploaded Provenance Actions
django_cgi_wrap-0.2.0.tar.gz 3.5 kB Without provenance Details for django_cgi_wrap-0.2.0.tar.gz

Release files / django_cgi_wrap-0.2.0.tar.gz

Download URL django_cgi_wrap-0.2.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
552e04461e63ed936c0d14ecac53a4152880e3c0e3e7c73d46d4c9b42269ff0f
BLAKE2b-256 checksum
How to use checksums
8aad1d704c8b13207b9ea0e6f58e74fbebe19b528b6310293c411389dcc2f555
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-cgi-wrap 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

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